ezEngine  Milestone 7
ezReloadableVariableBase Class Referenceabstract

[internal] A helper class to implement persistent global variables during plugin reloading. More...

#include <ReloadableVariable.h>

Inheritance diagram for ezReloadableVariableBase:

Static Public Member Functions

static void StoreVariables ()
 Automatically called by ezPlugin whenever a plugin is unloaded, to preserve the current state of all reloadable global variables.
 

Protected Member Functions

 ezReloadableVariableBase ()
 Protected constructor, because this class should never be instantiated directly.
 

Static Protected Member Functions

static void RetrieveVariable (const char *szVarName, ezReloadableVariableBase *pVariable)
 Called by 'ezReloadableVariableWrapper' to retrieve the stored state of a reloadable variable (if available).
 

Protected Attributes

const char * m_szVariableName
 
- Protected Attributes inherited from ezEnumerable< ezReloadableVariableBase >
ezEnumerablem_pNextInstance
 

Private Member Functions

 EZ_DECLARE_ENUMERABLE_CLASS (ezReloadableVariableBase)
 
 EZ_DISALLOW_COPY_AND_ASSIGN (ezReloadableVariableBase)
 
virtual void SaveState (ezStreamWriterBase &Stream)=0
 Overridden by 'ezReloadableVariableWrapper' to implement type specific serialization.
 
virtual void LoadState (ezStreamReaderBase &Stream)=0
 Overridden by 'ezReloadableVariableWrapper' to implement type specific serialization.
 

Static Private Attributes

static ezMap< ezString,
ezMemoryStreamStorage
s_StoredVariables
 This map stores the last state of all known reloadable variables, to allow reading it back again on demand.
 

Detailed Description

[internal] A helper class to implement persistent global variables during plugin reloading.


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