Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoLicensesInfo.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Modified by : VSG (SEP 2012)
22**=======================================================================*/
23
24#ifndef _SO_LICENSES_INFO_
25#define _SO_LICENSES_INFO_
26
27#include <Inventor/SbPImpl.h>
28#include <Inventor/sys/port.h>
29#include <Inventor/SbBase.h>
30#include <Inventor/SbString.h>
32#include <Inventor/STL/map>
33#include <Inventor/STL/vector>
34
36
38
39
59{
60 SO_PIMPL_BASE_PUBLIC_HEADER(SoLicensesInfo)
61
62public:
63
68
72 unsigned int getProductCount() const;
73
79 const SoLicensedProduct* getLicensedProductByIndex( unsigned int index ) const;
80
86
92
97 void registerWarningCallback( int nbDaysBeforeExpiration, SoLicensesCB* cb );
98
107 static const char* getVersion();
108
120
143 static int check( const char* productName, float version, const char* licenseString = NULL,
144 SbBool printWarning = TRUE, char** errReport = NULL );
145private:
147 virtual ~SoLicensesInfo();
148};
149
150#endif /* _SO_LICENSES_INFO */
#define TRUE
Possible value of SbBool.
Definition SbBase.h:77
SO_PIMPL_BASE_PUBLIC_DECLARATION(SoImageDataAdapter)
void SoLicensesCB(SoLicensedProduct::SbProduct product)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class managing a...
SbProduct
List of all available Open Inventor products.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class managing e...
const SoLicensedProduct * getLicensedProductByIndex(unsigned int index) const
Gets the licensed product corresponding to the given index.
static int check(const char *productName, float version, const char *licenseString=NULL, SbBool printWarning=TRUE, char **errReport=NULL)
Query if Open Inventor or an extension module is licensed on this machine.
void registerExpirationCallback(SoLicensesCB *cb)
Sets the callback to call when a license is expired.
void registerWarningCallback(int nbDaysBeforeExpiration, SoLicensesCB *cb)
Sets the callback to call when a license date of expiration is lower than nbDayBeforeExpiration.
unsigned int getProductCount() const
Gets number of licensed products.
static SoLicensesInfo & getInstance()
Returns SoLicensesInfo singleton.
static const char * getVersion()
Returns a character string identifying the version of the Open Inventor library in use.
static float getLicensingVersionNumber()
Returns the current version number as a float for license checking.
const SoLicensedProduct * getLicensedProduct(SoLicensedProduct::SbProduct prod) const
Gets the licensed product corresponding to the given SoLicensedProduct::SbProduct.
int SbBool
Boolean type.
Definition SbBase.h:87