Functions to serialize and deserialize.
◆ dwMaps_deserialize()
Loads map data from file into the map.
Existing data in the map is overwritten.
- Note
- : If the map has not been initialized with sufficiently large buffer for the deserialized data file, and error is logged, and only part of the data is deserialized.
- Parameters
-
[in] | filename | File to store the map data. Gets overwritten if it exists. |
[in] | mapHandle | Map to serialize. |
- Returns
- DW_SUCCESS Successfully deserialized map data from file.
DW_BAD_CAST Could not successfully cast handle to map object.
DW_FILE_INVALID Error during deserialization.
◆ dwMaps_serialize()
Stores current map content into a file.
- Parameters
-
[in] | filename | File to store the map data. Gets overwritten if it exists. |
[in] | format | Serialization format. |
[in] | mapHandle | Map to serialize. |
- Returns
- DW_SUCCESS Successfully serialized map data into file.
DW_BAD_CAST Could not successfully cast handle to map object.
DW_INTERNAL_ERROR Error during point value serialization for xml.