Skyward boardcore
|
Serialization and de-serialization class for the registry. It does serialize and deserialize the configuration to the specified vector. More...
#include <RegistrySerializer.h>
Public Member Functions | |
RegistrySerializer (std::vector< uint8_t > &vector) | |
Construct a new Registry Serializer object. | |
RegistryError | serializeConfiguration (RegistryConfiguration &configuration) |
Serializes the configuration map into the uint8_t vector for serialized data. | |
RegistryError | deserializeConfiguration (RegistryConfiguration &configuration) |
De-serializes the data from a serialized vector into the configuration map. In case of malformed serialized vectors, does not changes the configuration map and returns an error. | |
Serialization and de-serialization class for the registry. It does serialize and deserialize the configuration to the specified vector.
Definition at line 64 of file RegistrySerializer.h.
|
explicit |
Construct a new Registry Serializer object.
vector | The reference to the vector for serialization/deserialization procedures |
Definition at line 30 of file RegistrySerializer.cpp.
RegistryError Boardcore::RegistrySerializer::deserializeConfiguration | ( | RegistryConfiguration & | configuration | ) |
De-serializes the data from a serialized vector into the configuration map. In case of malformed serialized vectors, does not changes the configuration map and returns an error.
configuration | The map in which we want to insert the entries from the serialized vector |
Definition at line 107 of file RegistrySerializer.cpp.
RegistryError Boardcore::RegistrySerializer::serializeConfiguration | ( | RegistryConfiguration & | configuration | ) |
Serializes the configuration map into the uint8_t vector for serialized data.
configuration | The configuration from which we read the current entries to be serialized |
Definition at line 35 of file RegistrySerializer.cpp.