Used to identify a specific camera in the Fusion API. More...
Functions | |
CameraIdentifier () | |
CameraIdentifier (uint64_t sn_) | |
sl::String | get () const |
bool | save (const String &filename, const SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) const |
Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
bool | load (const String &filename, const SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Loads a set of parameters from the values contained in a previously saved file. More... | |
bool | encode (String &serialized_content, const SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string. More... | |
bool | decode (const String &serialized_content, const SERIALIZATION_FORMAT format=SERIALIZATION_FORMAT::JSON) |
Fill the structure from the serialized json object contained in the input string. More... | |
Attributes | |
uint64_t | sn |
Used to identify a specific camera in the Fusion API.
|
inline |
|
inline |
|
inline |
bool save | ( | const String & | filename, |
const SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | const |
Saves the current set of parameters into a file to be reloaded with the load() method.
filename | : Name of the file which will be created to store the parameters (extension '.yml' will be added if not set). |
bool load | ( | const String & | filename, |
const SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
Loads a set of parameters from the values contained in a previously saved file.
filename | : Path to the file from which the parameters will be loaded (extension '.yml' will be added at the end of the filename if not detected). |
bool encode | ( | String & | serialized_content, |
const SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) | const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
serialized_content | output string containing the JSON Object |
format | serialization format, default is JSON |
bool decode | ( | const String & | serialized_content, |
const SERIALIZATION_FORMAT | format = SERIALIZATION_FORMAT::JSON |
||
) |
Fill the structure from the serialized json object contained in the input string.
serialized_content | input string containing the JSON Object |
format | serialization format, default is JSON |
uint64_t sn |
Referenced by sl::operator!=(), and sl::operator==().