SqueezeBrains SDK 1.18
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 {
56 };
57
61 public enum class SbLicenseModuleStatus :int {
66 };
67
71 public ref class SbLicenseConfiguration
72 {
73 public:
80
86
92
98 internal:
100 SbError CopyFromNative(const sb_t_license_configuration* const src);
101 };
102
106 public ref class SbLicenseModule
107 {
108 public:
114
120
126
132
138
144
149 signed long long remain;
150
156
162
167 String^ sn;
168 internal:
169 SbLicenseModule(const sb_t_license_module* const src);
170 SbError CopyFromNative(const sb_t_license_module* const src);
171 };
172
173
178 public ref class SbLicense: SbCommon
179 {
180 public:
181 String^ address;
182 String^ company;
183 String^ company_role;
184 String^ mail;
185 String^ name;
187 String^ phone;
188 String^ surname;
190 String^ vat;
191 String^ vendor_code;
195 String^ machine_id;
200 array<SbLicenseModule^>^ module;
216
227
235 String^ FormatInfo();
236
246
256
265 static String^ FormatType(SbLicenseType type);
266
276
284 static String^ GetHardwareInfo();
285
290
291 internal:
292 SbLicense();
293 ~SbLicense();
294 sb_t_license *sb_license;
295 SbError CopyFromNative(const sb_t_license* const license);
296 }; // group_cs_license // group_cs
299}
Common class
Definition: cs_common.h:242
License configuration class that wraps the sb_t_license_configuration structure
Definition: cs_license.h:72
int num_threads
Maximum number of threads allowed with the current license configuration.
Definition: cs_license.h:91
int num_features
Maximum number of features allowed with the current license configuration.
Definition: cs_license.h:85
float speed_boost
Maximum detection speed boost allowed with the current license configuration.
Definition: cs_license.h:97
SbLicenseConfigurationId id
License configuration identifier.
Definition: cs_license.h:74
int num_models
Maximum number of models allowed with the current license configuration.
Definition: cs_license.h:79
License Class that wraps the sb_t_license structure. You must call the Dispose() method to free all ...
Definition: cs_license.h:179
static String FormatType(SbLicenseType type)
Formats the license type
String machine_id
machine identifier, uniquely identifies the hardware.
Definition: cs_license.h:195
String FormatInfo()
Formats the license structure.
SbTime time_create
Creation date.
Definition: cs_license.h:205
static String FormatModuleStatus(SbLicenseModuleStatus status)
Format the module status
String phone
Company phone number.
Definition: cs_license.h:187
SbTime time_save
Last save date.
Definition: cs_license.h:215
SbTime time_modify
Last modification date.
Definition: cs_license.h:210
String surname
Surname.
Definition: cs_license.h:188
static String FormatConfiguration(SbLicenseConfigurationId id)
Formats the license configuration id
String company_role
Role of the user in the company.
Definition: cs_license.h:183
String address
Company address.
Definition: cs_license.h:181
String company
Company name.
Definition: cs_license.h:182
String mail
User mail address.
Definition: cs_license.h:184
String vendor_code
vendor code.
Definition: cs_license.h:191
static const int LICENSE_MODULE_NUMBER
Number of license modules
Definition: cs_license.h:289
String vat
Company VAT number.
Definition: cs_license.h:190
String name
User name.
Definition: cs_license.h:185
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, Deep Cortex and Deep Retina.
Definition: cs_license.h:200
static String GetHardwareInfo()
Returns the hardware information.
String operating_system
Operating system.
Definition: cs_license.h:186
String sector_of_interest
Sectors of interest of the company.
Definition: cs_license.h:189
License module Class that wraps the sb_t_license_module structure
Definition: cs_license.h:107
SbLicenseConfiguration configuration
License configuration.
Definition: cs_license.h:119
SbTime time_start
Start date of the license.
Definition: cs_license.h:137
signed long long remain
Number of second before expiration.
Definition: cs_license.h:149
String sn
Serial number.
Definition: cs_license.h:167
SbVersion version
Version of the module when the license was created.
Definition: cs_license.h:131
SbLicenseModuleStatus status
The license status.
Definition: cs_license.h:155
SbLicenseType type
License type of the module.
Definition: cs_license.h:113
bool training
Training status.
Definition: cs_license.h:125
SbTime time_end
End date of the license.
Definition: cs_license.h:143
SbError err
The license error.
Definition: cs_license.h:161
Time class
Definition: cs_common.h:272
Version class that wraps the sb_t_version structure
Definition: cs_common.h:199
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:61
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_MODULE_DEEP_RETINA
Deep Retina.
@ 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:7629
SB Namespace
Definition: cs_common.h:3
Defines the configurations of the license.
Definition: sb.h:7639
Defines all the attributes and properties of a license module.
Definition: sb.h:7677
Defines the license and its properties.
Definition: sb.h:7741