ezEngine  Release 25.03
ezObjectMetaData< KEY, VALUE > Class Template Reference

Stores meta data for document objects that is not part of the object itself. E.g. editor-only states like hidden or prefab information. More...

#include <ObjectMetaData.h>

Classes

struct  EventData
 
class  Storage
 

Public Member Functions

bool HasMetaData (const KEY objectKey) const
 
void ClearMetaData (const KEY objectKey)
 
const VALUE * BeginReadMetaData (const KEY objectKey) const
 Will always return a non-null result. May be a default object.
 
void EndReadMetaData () const
 
VALUE * BeginModifyMetaData (const KEY objectKey)
 
void EndModifyMetaData (ezUInt32 uiModifiedFlags=0xFFFFFFFF)
 
ezMutexGetMutex () const
 
const VALUE & GetDefaultValue () const
 
void AttachMetaDataToAbstractGraph (ezAbstractObjectGraph &inout_graph) const
 Uses reflection information from VALUE to store all properties that differ from the default value as additional properties for the graph objects.
 
void RestoreMetaDataFromAbstractGraph (const ezAbstractObjectGraph &graph)
 Uses reflection information from VALUE to restore all meta data properties from the graph.
 
ezSharedPtr< ezObjectMetaData< KEY, VALUE >::StorageSwapStorage (ezSharedPtr< ezObjectMetaData< KEY, VALUE >::Storage > pNewStorage)
 
ezSharedPtr< ezObjectMetaData< KEY, VALUE >::StorageGetStorage ()
 

Public Attributes

ezEvent< const EventData & > m_DataModifiedEvent
 

Detailed Description

template<typename KEY, typename VALUE>
class ezObjectMetaData< KEY, VALUE >

Stores meta data for document objects that is not part of the object itself. E.g. editor-only states like hidden or prefab information.

Template Parameters
KEYThe key under which data is stored. Usually ezUuid to reference document objects.
VALUEMeta value type to be stored.

The documentation for this class was generated from the following files: