Nameless Engine
|
#include <Serializable.h>
Public Member Functions | |
SerializableObjectInformation (Serializable *pObject, const std::string &sObjectUniqueId, const std::unordered_map< std::string, std::string > &customAttributes={}, Serializable *pOriginalObject=nullptr) | |
Public Attributes | |
Serializable * | pObject = nullptr |
Serializable * | pOriginalObject = nullptr |
std::string | sObjectUniqueId |
std::unordered_map< std::string, std::string > | customAttributes |
Information about an object to be serialized.
|
inline |
Initialized object information for serialization.
pObject | Object to serialize. |
sObjectUniqueId | Object's unique ID. Don't use dots in IDs. |
customAttributes | Optional. Pairs of values to serialize with this object. |
pOriginalObject | Optional. Use if the object was previously deserialized and you now want to only serialize changed fields of this object and additionally store the path to the original file (to deserialize unchanged fields). |
std::unordered_map<std::string, std::string> ne::SerializableObjectInformation::customAttributes |
Map of object attributes (custom information) that will be also serialized/deserialized.
Serializable* ne::SerializableObjectInformation::pObject = nullptr |
Object to serialize.
Serializable* ne::SerializableObjectInformation::pOriginalObject = nullptr |
Use if pObject was previously deserialized and you now want to only serialize changed fields of this object and additionally store the path to the original file (to deserialize unchanged fields).
std::string ne::SerializableObjectInformation::sObjectUniqueId |
Unique object ID. Don't use dots in it.