DirectZ
Loading...
Searching...
No Matches
dz::Restorable Struct Reference

#include <State.hpp>

Inheritance diagram for dz::Restorable:
dz::ECS< TCID, TProviders >

Public Member Functions

virtual ~Restorable ()=default
virtual int getCID ()
 Returns the Constructor ID at runtime.
virtual bool backup (Serial &serial)
 virtual method for writing the Restorable data
virtual bool restore (Serial &serial)
 virtual method for reading the Restorable data

Static Public Member Functions

template<typename T>
static int GetCID ()
 Returns the Constructor ID for this Restorable.

Constructor & Destructor Documentation

◆ ~Restorable()

virtual dz::Restorable::~Restorable ( )
virtualdefault

Member Function Documentation

◆ backup()

virtual bool dz::Restorable::backup ( Serial & serial)
inlinevirtual

virtual method for writing the Restorable data

Reimplemented in dz::ECS< TCID, TProviders >.

◆ GetCID()

template<typename T>
int dz::Restorable::GetCID ( )
inlinestatic

Returns the Constructor ID for this Restorable.

Note
typename T should implement a unique constant value CID

◆ getCID()

virtual int dz::Restorable::getCID ( )
inlinevirtual

Returns the Constructor ID at runtime.

Reimplemented in dz::ECS< TCID, TProviders >.

◆ restore()

virtual bool dz::Restorable::restore ( Serial & serial)
inlinevirtual

virtual method for reading the Restorable data

Reimplemented in dz::ECS< TCID, TProviders >.


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