RADLib
RADical C++ application framework
RADLicenseGate.h File Reference

Compile-time acknowledgement gate for RADLib public SDK consumers. More...

Go to the source code of this file.

Namespaces

 RADLicense
 

Macros

#define RADLIB_LICENSE_TIER_TEXT   "unknown"
 
#define RADLIB_EDITION_COMMUNITY   1
 
#define RADLIB_EDITION_TEXT   "community-edition"
 
#define RADLIB_EDITION_REQUIRES_LICENSE_KEY   0
 

Functions

constexpr const char * RADLicense::compileTier ()
 Returns the license tier declared when this translation unit was compiled. More...
 
constexpr const char * RADLicense::compileEdition ()
 Returns the RADLib product edition declared when this translation unit was compiled. More...
 
constexpr bool RADLicense::compileRequiresRuntimeLicenseKey ()
 Returns true when this compile target expects runtime paid-license verification. More...
 
constexpr const char * RADLicense::compileAuditStamp ()
 Returns a stable audit stamp suitable for logs and about dialogs. More...
 
constexpr bool RADLicense::communityBuild ()
 Returns true when this translation unit was compiled as a community build. More...
 
constexpr bool RADLicense::commercialBuild ()
 Returns true when this translation unit was compiled as a commercial build. More...
 
constexpr bool RADLicense::communityEdition ()
 Returns true when this translation unit was compiled against Community Edition RADLib. More...
 
constexpr bool RADLicense::paidEdition ()
 Returns true when this translation unit was compiled against Paid Edition RADLib. More...
 

Detailed Description

Compile-time acknowledgement gate for RADLib public SDK consumers.

Public RADLib headers require an explicit license acknowledgement macro for external builds. This is a legal/compliance checkpoint, not DRM. Commercial applications should also verify a signed node-locked license at runtime with RADSecurity::LicenseManager.

Macro Definition Documentation

◆ RADLIB_EDITION_COMMUNITY

#define RADLIB_EDITION_COMMUNITY   1

◆ RADLIB_EDITION_REQUIRES_LICENSE_KEY

#define RADLIB_EDITION_REQUIRES_LICENSE_KEY   0

◆ RADLIB_EDITION_TEXT

#define RADLIB_EDITION_TEXT   "community-edition"

◆ RADLIB_LICENSE_TIER_TEXT

#define RADLIB_LICENSE_TIER_TEXT   "unknown"