SqueezeBrains SDK 1.13
cs_license.h
1#pragma once
2namespace sb_cs
3{
17 public enum class SbLicenseType :int {
23 };
24
28 public enum class SbLicenseConfigurationId :int {
37 };
38
43 public enum class SbLicenseModuleId :int
44 {
55 };
56
60 public enum class SbLicenseModuleStatus :int {
65 };
66
70 public ref class SbLicenseConfiguration
71 {
72 public:
79
85
91
97 internal:
99 SbError CopyFromNative(const sb_t_license_configuration* const src);
100 };
101
105 public ref class SbLicenseModule
106 {
107 public:
113
119
125
131
137
143
148 signed long long remain;
149
155
161
166 String^ sn;
167 internal:
168 SbLicenseModule(const sb_t_license_module* const src);
169 SbError CopyFromNative(const sb_t_license_module* const src);
170 };
171
172
177 public ref class SbLicense: SbCommon
178 {
179 public:
180 String^ address;
181 String^ company;
182 String^ company_role;
183 String^ mail;
184 String^ name;
186 String^ phone;
187 String^ surname;
189 String^ vat;
190 String^ vendor_code;
194 String^ machine_id;
199 array<SbLicenseModule^>^ module;
215
226
234 String^ FormatInfo();
235
245
255
264 static String^ FormatType(SbLicenseType type);
265
275
283 static String^ GetHardwareInfo();
284
289
290 internal:
291 SbLicense();
292 ~SbLicense();
293 sb_t_license *sb_license;
294 SbError CopyFromNative(const sb_t_license* const license);
295 }; // group_cs_license // group_cs
298}
Common class
Definition: cs_common.h:191
License configuration class that wraps the sb_t_license_configuration structure
Definition: cs_license.h:71
int num_threads
Maximum number of threads allowed with the current license configuration.
Definition: cs_license.h:90
int num_features
Maximum number of features allowed with the current license configuration.
Definition: cs_license.h:84
float speed_boost
Maximum detection speed boost allowed with the current license configuration.
Definition: cs_license.h:96
SbLicenseConfigurationId id
License configuration identifier.
Definition: cs_license.h:73
int num_models
Maximum number of models allowed with the current license configuration.
Definition: cs_license.h:78
License Class that wraps the sb_t_license structure. You must call the Dispose() method to free all ...
Definition: cs_license.h:178
static String FormatType(SbLicenseType type)
Formats the license type
String machine_id
machine identifier, uniquely identifies the hardware.
Definition: cs_license.h:194
String FormatInfo()
Formats the license structure.
SbTime time_create
Creation date.
Definition: cs_license.h:204
static String FormatModuleStatus(SbLicenseModuleStatus status)
Format the module status
String phone
Company phone number.
Definition: cs_license.h:186
SbTime time_save
Last save date.
Definition: cs_license.h:214
SbTime time_modify
Last modification date.
Definition: cs_license.h:209
String surname
Surname.
Definition: cs_license.h:187
static String FormatConfiguration(SbLicenseConfigurationId id)
Formats the license configuration id
String company_role
Role of the user in the company.
Definition: cs_license.h:182
String address
Company address.
Definition: cs_license.h:180
String company
Company name.
Definition: cs_license.h:181
String mail
User mail address.
Definition: cs_license.h:183
String vendor_code
vendor code.
Definition: cs_license.h:190
static const int LICENSE_MODULE_NUMBER
Number of license modules
Definition: cs_license.h:288
String vat
Company VAT number.
Definition: cs_license.h:189
String name
User name.
Definition: cs_license.h:184
static String FormatModuleId(SbLicenseModuleId id)
Formats the module id
static SbLicense GetInfo()
Returns information about the license status.
array< SbLicenseModule^> module
Array of the license of the modules Retina, Surface, Deep Surface and Deep Cortex.
Definition: cs_license.h:199
static String GetHardwareInfo()
Returns the hardware information.
String operating_system
Operating system.
Definition: cs_license.h:185
String sector_of_interest
Sectors of interest of the company.
Definition: cs_license.h:188
License module Class that wraps the sb_t_license_module structure
Definition: cs_license.h:106
SbLicenseConfiguration configuration
License configuration.
Definition: cs_license.h:118
SbTime time_start
Start date of the license.
Definition: cs_license.h:136
signed long long remain
Number of second before expiration.
Definition: cs_license.h:148
String sn
Serial number.
Definition: cs_license.h:166
SbVersion version
Version of the module when the license was created.
Definition: cs_license.h:130
SbLicenseModuleStatus status
The license status.
Definition: cs_license.h:154
SbLicenseType type
License type of the module.
Definition: cs_license.h:112
bool training
Training status.
Definition: cs_license.h:124
SbTime time_end
End date of the license.
Definition: cs_license.h:142
SbError err
The license error.
Definition: cs_license.h:160
Time class
Definition: cs_common.h:221
Version class that wraps the sb_t_version structure
Definition: cs_sb.h:39
SbError
Enum error codes
Definition: cs_common.h:13
SbLicenseModuleStatus
License module status that wraps the sb_t_license_module_status enum
Definition: cs_license.h:60
SbLicenseModuleId
Enumerations of modules of the SB library.
Definition: cs_license.h:44
SbLicenseConfigurationId
License configuration id that wraps the sb_t_license_configuration_id enum.
Definition: cs_license.h:28
SbLicenseType
License type that wraps the sb_t_license_type enum
Definition: cs_license.h:17
@ SB_LICENSE_MODULE_STATUS_ACTIVE
The license is valid and active.
@ SB_LICENSE_MODULE_STATUS_ERR
There is an error. See the field sb_t_license_module::err.
@ SB_LICENSE_MODULE_STATUS_NULL
The license status is undefined.
@ SB_LICENSE_MODULE_STATUS_DISABLED
The license is disabled.
@ SB_LICENSE_MODULE_SURFACE
Surface.
@ SB_LICENSE_MODULE_NUMBER
Number of modules.
@ SB_LICENSE_MODULE_DEEP_CORTEX
Deep Cortex.
@ SB_LICENSE_MODULE_NONE
Module type not defined.
@ SB_LICENSE_MODULE_DEEP_SURFACE
Deep Surface.
@ SB_LICENSE_STANDARD
Standard configuration.
@ SB_LICENSE_BASIC
Basic configuration.
@ SB_LICENSE_CONFIGURATION_NUMBER
Number of configurations.
@ SB_LICENSE_PREMIUM
Premium configuration.
@ SB_LICENSE_NULL
License type isn't defined.
@ SB_LICENSE_DISABLED
License is disabled.
@ SB_LICENSE_NOT_PRESENT
License is not present.
@ SB_LICENSE_DEMO
Demo license: has an expiry date.
@ SB_LICENSE_MASTER
Master license: hasn't an expiry date.
@ SB_LICENSE_MODULE_NUMBER
Number of modules.
Definition: sb.h:6839
SB Namespace
Definition: cs_common.h:3
Defines the configurations of the license.
Definition: sb.h:6849
Defines all the attributes and properties of a license module.
Definition: sb.h:6887
Defines the license and its properties.
Definition: sb.h:6951