23#ifndef __SMESHUtils_MGLicenseKeyGen_HXX__
24#define __SMESHUtils_MGLicenseKeyGen_HXX__
30#define MESHGEMS_215 (2 << 16 | 15 << 8 | 0)
#define SMESHUtils_EXPORT
Definition: SMESH_Utils.hxx:37
Manage loading libSalomeMeshGemsKeyGenerator.
Definition: SMESH_MGLicenseKeyGen.cxx:394
bool SetMGSpatialEnvLicense(std::string &error)
Set the SPATIAL_LICENSE environment variable.
Definition: SMESH_MGLicenseKeyGen.cxx:760
int GetMGVersionHex(std::string &error)
Get MeshGems version from the keygen library or meshgems built-in functions.
Definition: SMESH_MGLicenseKeyGen.cxx:691
int GetMGVersionFromEnv(const char *env_variable)
Get MeshGems version major/minor/patch from the environment variables.
Definition: SMESH_MGLicenseKeyGen.cxx:646
std::string GetLibraryName()
Return KeyGenerator library name.
Definition: SMESH_MGLicenseKeyGen.cxx:874
bool UnlockProduct(const std::string &product, std::string &error)
Unlock a specific MeshGems product (for products called as a library)
Definition: SMESH_MGLicenseKeyGen.cxx:442
bool SignCAD(void *meshgems_cad, std::string &error)
Sign a CAD (or don't do it if env MESHGEMS_OLD_STYLE is set)
Definition: SMESH_MGLicenseKeyGen.cxx:488
std::string 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 ...
Definition: SMESH_MGLicenseKeyGen.cxx:785
bool CheckKeyGenLibrary(std::string &error)
Return false if libMeshGemsKeyGenerator.so is not functional.
Definition: SMESH_MGLicenseKeyGen.cxx:863
bool NeedsMGSpatialEnvLicense(std::string &error)
Guess if the Spatial license is needed (if MeshGems is > 2.15.0)
Definition: SMESH_MGLicenseKeyGen.cxx:743
bool 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)
Definition: SMESH_MGLicenseKeyGen.cxx:551
int GetMGVersionFromFunction(const char *function_name)
Get MeshGems version major/minor/patch from the keygen library and meshgems built-in functions.
Definition: SMESH_MGLicenseKeyGen.cxx:667