Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoLicensesInfo.h
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>
31#include <Inventor/lock/SoLicensedProduct.h>
32#include <Inventor/STL/map>
33#include <Inventor/STL/vector>
34
37
38SO_PIMPL_BASE_PUBLIC_DECLARATION(SoLicensesInfo)
39
40
60{
61 SO_PIMPL_BASE_PUBLIC_HEADER(SoLicensesInfo)
62
63public:
64
69
73 unsigned int getProductCount() const;
74
80 const SoLicensedProduct* getLicensedProductByIndex( unsigned int index ) const;
81
87
92 void registerExpirationCallback( SoLicensesCB* cb );
93
98 void registerWarningCallback( int nbDaysBeforeExpiration, SoLicensesCB* cb );
99
108 static const char* getVersion();
109
121
144 static int check( const char* productName, float version, const char* licenseString = NULL,
145 SbBool printWarning = TRUE, char** errReport = NULL );
146private:
148 virtual ~SoLicensesInfo();
149};
150
151#endif /* _SO_LICENSES_INFO */
<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.
void SoLicensesCB(SoLicensedProduct::SbProduct product)
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