Nameless Engine
Loading...
Searching...
No Matches
ne::SerializableObjectInformation Struct Reference

#include <Serializable.h>

Inheritance diagram for ne::SerializableObjectInformation:
ne::Node::SerializableObjectInformationWithGcPointer

Public Member Functions

 SerializableObjectInformation (Serializable *pObject, const std::string &sObjectUniqueId, const std::unordered_map< std::string, std::string > &customAttributes={}, Serializable *pOriginalObject=nullptr)
 

Public Attributes

SerializablepObject = nullptr
 
SerializablepOriginalObject = nullptr
 
std::string sObjectUniqueId
 
std::unordered_map< std::string, std::string > customAttributes
 

Detailed Description

Information about an object to be serialized.

Constructor & Destructor Documentation

◆ SerializableObjectInformation()

ne::SerializableObjectInformation::SerializableObjectInformation ( Serializable pObject,
const std::string &  sObjectUniqueId,
const std::unordered_map< std::string, std::string > &  customAttributes = {},
Serializable pOriginalObject = nullptr 
)
inline

Initialized object information for serialization.

Parameters
pObjectObject to serialize.
sObjectUniqueIdObject's unique ID. Don't use dots in IDs.
customAttributesOptional. Pairs of values to serialize with this object.
pOriginalObjectOptional. 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).

Member Data Documentation

◆ customAttributes

std::unordered_map<std::string, std::string> ne::SerializableObjectInformation::customAttributes

Map of object attributes (custom information) that will be also serialized/deserialized.

◆ pObject

Serializable* ne::SerializableObjectInformation::pObject = nullptr

Object to serialize.

◆ pOriginalObject

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).

◆ sObjectUniqueId

std::string ne::SerializableObjectInformation::sObjectUniqueId

Unique object ID. Don't use dots in it.


The documentation for this struct was generated from the following file: