ReconstructMe SDK  2.0.819-89134
Real-time 3D reconstruction engine
 All Classes Files Functions Typedefs Enumerations Enumerator Groups Pages
Typedefs
License

Authenticate your copy of ReconstructMe SDK. More...

Typedefs

typedef int reme_license_t
 Handle referencing a license object.
 
reme_error_t reme_license_create (reme_context_t c, reme_license_t *l)
 Creates a new license object.
 
reme_error_t reme_license_destroy (reme_context_t c, reme_license_t *l)
 Destroy a previously created license object.
 
reme_error_t reme_license_clear_runtime_info (reme_context_t c, reme_license_t l)
 Reset data related to runtime information.
 
reme_error_t reme_license_add_software (reme_context_t c, reme_license_t l, const char *module, int module_length, const char *shash, int shash_length)
 Add licensed software.
 
reme_error_t reme_license_authenticate (reme_context_t c, reme_license_t l, const char *license)
 Authenticate using the given license file and any specified runtime data.
 
reme_error_t reme_license_bind_hardware_hashes (reme_context_t c, reme_license_t l, reme_options_t o)
 Access hardware hashes for generating single user licenses bound to specific hardware.
 

Detailed Description

Authenticate your copy of ReconstructMe SDK.

The license handling is responsible for activating/deactivating certain SDK features depending on the license supplied. By default ReconstructMe SDK runs in non-commercial mode. To active the commerical mode and remove the limitations from the non-commercial version, you need to authenticate using the license file you have received on purchase. The snippet below shows how to do this

// Create a license object
reme_error_t e = reme_license_authenticate(c, l, "license.txt.sgn");
if (e == REME_ERROR_SUCCESS) {
puts("Now running in commercial mode");
} else {
puts("Failed to authenticate.");
}

Typedef Documentation

typedef int reme_license_t

Handle referencing a license object.

ReconstructMe SDK commercial requires a valid license to be used.

Function Documentation

reme_error_t reme_license_create ( reme_context_t  c,
reme_license_t l 
)

Creates a new license object.

Only one license object can be around for a context. Multiple invocations will return the same handle.

Parameters
cA valid context object
lA pointer that will receive the license handle.
Return values
REME_ERROR_SUCCESSOn success
REME_ERROR_UNSPECIFIEDOn failure
Examples:
example_reconstructmesdk_calibration.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_point_and_shoot_with_colors.cpp, and example_reconstructmesdk_sensor_multi_independent.cpp.
reme_error_t reme_license_destroy ( reme_context_t  c,
reme_license_t l 
)

Destroy a previously created license object.

Parameters
cA pointer to a valid context object
lA mutable pointer to a valid license handle to destroy
Return values
REME_ERROR_SUCCESSOn success
REME_ERROR_UNSPECIFIEDOn failure
reme_error_t reme_license_clear_runtime_info ( reme_context_t  c,
reme_license_t  l 
)

Reset data related to runtime information.

Parameters
cA pointer to a valid context object
lA valid license handle
Return values
REME_ERROR_SUCCESSOn success
REME_ERROR_UNSPECIFIEDOn failure
reme_error_t reme_license_add_software ( reme_context_t  c,
reme_license_t  l,
const char *  module,
int  module_length,
const char *  shash,
int  shash_length 
)

Add licensed software.

These values are required when the license is bound to specific software

Parameters
cA pointer to a valid context object
lA valid license handle
moduleName of the module that the signed hash corresponds to. This module must be found in the current process (i.e. loaded by the current process). Wildcards *? are accepted.
module_lengthlength of module string in bytes
shashthe signed checksum of the module
shash_lengthlength of the signed checksum in bytes
Return values
REME_ERROR_SUCCESSOn success
REME_ERROR_UNSPECIFIEDOn failure
reme_error_t reme_license_authenticate ( reme_context_t  c,
reme_license_t  l,
const char *  license 
)

Authenticate using the given license file and any specified runtime data.

Unless a valid ReconstructMe SDK license is specified, this SDK runs in non-commercial mode.

Parameters
cA valid context handle
lA valid license handle
licenseThe license file path containing it.
Return values
REME_ERROR_SUCCESSOn success
REME_ERROR_INVALID_LICENSEOn authentication error. reme_context_bind_error_info contains details.
REME_ERROR_UNSPECIFIEDOn failure. CIFIED On other failure
Examples:
example_reconstructmesdk_calibration.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_point_and_shoot_with_colors.cpp, and example_reconstructmesdk_sensor_multi_independent.cpp.
reme_error_t reme_license_bind_hardware_hashes ( reme_context_t  c,
reme_license_t  l,
reme_options_t  o 
)

Access hardware hashes for generating single user licenses bound to specific hardware.

Associated Protocol Buffers Specification
// Hardware hashes
message hardware {
repeated string hashes = 1;
}
Parameters
cA valid context object
lA valid license object
oA valid options binding
Return values
REME_ERROR_SUCCESSOn success
REME_ERROR_UNSPECIFIEDOn failure