Version: 9.16.0
SMESH_MGLicenseKeyGen.hxx File Reference
#include "SMESH_Utils.hxx"
#include <string>
Include dependency graph for SMESH_MGLicenseKeyGen.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SMESHUtils_MGLicenseKeyGen
 Manage loading libSalomeMeshGemsKeyGenerator.
 

Macros

#define MESHGEMS_215   (2 << 16 | 15 << 8 | 0)
 

Functions

bool SMESHUtils_MGLicenseKeyGen::SignCAD (void *meshgems_cad, std::string &error)
 Sign a CAD (or don't do it if env MESHGEMS_OLD_STYLE is set) More...
 
bool SMESHUtils_MGLicenseKeyGen::UnlockProduct (const std::string &product, std::string &error)
 Unlock a specific MeshGems product (for products called as a library) More...
 
bool SMESHUtils_MGLicenseKeyGen::SignMesh (void *meshgems_mesh, const std::string &product, std::string &error)
 Sign a mesh (or don't do it if env MESHGEMS_OLD_STYLE is set) More...
 
std::string SMESHUtils_MGLicenseKeyGen::GetKey (const std::string &gmfFile, int nbVertex, int nbEdge, int nbFace, int nbVol, std::string &error)
 Get the license key from libMeshGemsKeyGenerator.so or $SPATIAL_LICENSE Called by plugins calling MG products as executables. More...
 
std::string SMESHUtils_MGLicenseKeyGen::GetKey (std::string &error)
 Get the license key from libMeshGemsKeyGenerator.so or $SPATIAL_LICENSE Called for MG 2.15 by CADSurf and MG plugins calling MG products as library, i.e. More...
 
bool SMESHUtils_MGLicenseKeyGen::CheckKeyGenLibrary (std::string &error)
 Return false if libMeshGemsKeyGenerator.so is not functional. More...
 
std::string SMESHUtils_MGLicenseKeyGen::GetLibraryName ()
 Return KeyGenerator library name. More...
 
int SMESHUtils_MGLicenseKeyGen::GetMGVersionFromFunction (const char *function_name)
 Get MeshGems version major/minor/patch from the keygen library and meshgems built-in functions. More...
 
int SMESHUtils_MGLicenseKeyGen::GetMGVersionFromEnv (const char *env_variable)
 Get MeshGems version major/minor/patch from the environment variables. More...
 
int SMESHUtils_MGLicenseKeyGen::GetMGVersionHex (std::string &error)
 Get MeshGems version from the keygen library or meshgems built-in functions. More...
 
bool SMESHUtils_MGLicenseKeyGen::NeedsMGSpatialEnvLicense (std::string &error)
 Guess if the Spatial license is needed (if MeshGems is > 2.15.0) More...
 
bool SMESHUtils_MGLicenseKeyGen::SetMGSpatialEnvLicense (std::string &error)
 Set the SPATIAL_LICENSE environment variable. More...
 

Macro Definition Documentation

◆ MESHGEMS_215

#define MESHGEMS_215   (2 << 16 | 15 << 8 | 0)