ezEngine  Milestone 7
ezReloadableVariableWrapper< Type > Class Template Reference

[internal] Helper class, derived from ezReloadableVariableBase, to implement type specific reloading of global variables. More...

#include <ReloadableVariable.h>

Inheritance diagram for ezReloadableVariableWrapper< Type >:

Public Member Functions

 ezReloadableVariableWrapper (Type &Variable, const char *szVarName)
 

Private Member Functions

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

Private Attributes

Type & m_Variable
 

Additional Inherited Members

- Static Public Member Functions inherited from ezReloadableVariableBase
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 inherited from ezReloadableVariableBase
 ezReloadableVariableBase ()
 Protected constructor, because this class should never be instantiated directly.
 
- Static Protected Member Functions inherited from ezReloadableVariableBase
static void RetrieveVariable (const char *szVarName, ezReloadableVariableBase *pVariable)
 Called by 'ezReloadableVariableWrapper' to retrieve the stored state of a reloadable variable (if available).
 
- Protected Attributes inherited from ezReloadableVariableBase
const char * m_szVariableName
 

Detailed Description

template<typename Type>
class ezReloadableVariableWrapper< Type >

[internal] Helper class, derived from ezReloadableVariableBase, to implement type specific reloading of global variables.


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