Nameless Engine
Loading...
Searching...
No Matches
ne::DeserializedObjectInformation< SmartPointer, InnerType > Struct Template Reference

#include <Serializable.h>

Public Member Functions

 DeserializedObjectInformation (SmartPointer pObject, std::string sObjectUniqueId, std::unordered_map< std::string, std::string > customAttributes)
 

Public Attributes

SmartPointer pObject
 
std::string sObjectUniqueId
 
std::unordered_map< std::string, std::string > customAttributes
 

Detailed Description

template<typename SmartPointer, typename InnerType = typename SmartPointer::element_type>
requires std::same_as<SmartPointer, sgc::GcPtr<Serializable>> || std::same_as<SmartPointer, std::unique_ptr<Serializable>>
struct ne::DeserializedObjectInformation< SmartPointer, InnerType >

Information about an object that was deserialized.

Constructor & Destructor Documentation

◆ DeserializedObjectInformation()

template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
ne::DeserializedObjectInformation< SmartPointer, InnerType >::DeserializedObjectInformation ( SmartPointer  pObject,
std::string  sObjectUniqueId,
std::unordered_map< std::string, std::string >  customAttributes 
)
inline

Initialized object information after deserialization.

Parameters
pObjectDeserialized object.
sObjectUniqueIdObject's unique ID.
customAttributesObject's custom attributes.

Member Data Documentation

◆ customAttributes

template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
std::unordered_map<std::string, std::string> ne::DeserializedObjectInformation< SmartPointer, InnerType >::customAttributes

Map of object attributes (custom information) that were deserialized.

◆ pObject

template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
SmartPointer ne::DeserializedObjectInformation< SmartPointer, InnerType >::pObject

Object to serialize.

◆ sObjectUniqueId

template<typename SmartPointer , typename InnerType = typename SmartPointer::element_type>
std::string ne::DeserializedObjectInformation< SmartPointer, InnerType >::sObjectUniqueId

Unique object ID.


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