ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Wintermute::SystemClass Class Reference

#include <sys_class.h>

Collaboration diagram for Wintermute::SystemClass:

List of all members.

Public Member Functions

 SystemClass (const AnsiString &name, PERSISTBUILD build, PERSISTLOAD load, bool persistentClass)
 ~SystemClass ()
int getNumInstances ()
bool removeInstance (void *instance)
SystemInstanceaddInstance (void *instance, int id, int savedId=-1)
bool removeAllInstances ()
int getInstanceID (void *pointer)
void * idToPointer (int savedID)
void setID (int id)
int getID () const
int getSavedID () const
bool isPersistent () const
AnsiString getName () const
void saveTable (BaseGame *Game, BasePersistenceManager *PersistMgr)
void loadTable (BaseGame *Game, BasePersistenceManager *PersistMgr)
void saveInstances (BaseGame *Game, BasePersistenceManager *PersistMgr)
void loadInstance (void *instance, BasePersistenceManager *PersistMgr)
void instanceCallback (SYS_INSTANCE_CALLBACK lpCallback, void *lpData)
void resetSavedIDs ()
void dump (Common::WriteStream *stream)

Private Types

typedef Common::HashMap
< SystemInstance
*, SystemInstance * > 
Instances
typedef Common::HashMap< void
*, SystemInstance * > 
InstanceMap

Private Attributes

int _numInst
bool _persistent
SystemClass_next
int _iD
int _savedID
AnsiString _name
PERSISTBUILD _build
PERSISTLOAD _load
Instances _instances
InstanceMap _instanceMap

Detailed Description

Definition at line 66 of file sys_class.h.


Member Typedef Documentation

Definition at line 124 of file sys_class.h.


Constructor & Destructor Documentation

Wintermute::SystemClass::SystemClass ( const AnsiString name,
PERSISTBUILD  build,
PERSISTLOAD  load,
bool  persistentClass 
)

Definition at line 39 of file sys_class.cpp.

Wintermute::SystemClass::~SystemClass (  ) 

Definition at line 54 of file sys_class.cpp.


Member Function Documentation

SystemInstance * Wintermute::SystemClass::addInstance ( void *  instance,
int  id,
int  savedId = -1 
)

Definition at line 72 of file sys_class.cpp.

void Wintermute::SystemClass::dump ( Common::WriteStream stream  ) 

Definition at line 131 of file sys_class.cpp.

int Wintermute::SystemClass::getID (  )  const [inline]

Definition at line 82 of file sys_class.h.

int Wintermute::SystemClass::getInstanceID ( void *  pointer  ) 

Definition at line 104 of file sys_class.cpp.

AnsiString Wintermute::SystemClass::getName (  )  const [inline]

Definition at line 94 of file sys_class.h.

int Wintermute::SystemClass::getNumInstances (  ) 

Definition at line 126 of file sys_class.cpp.

int Wintermute::SystemClass::getSavedID (  )  const [inline]

Definition at line 86 of file sys_class.h.

void * Wintermute::SystemClass::idToPointer ( int  savedID  ) 

Definition at line 114 of file sys_class.cpp.

void Wintermute::SystemClass::instanceCallback ( SYS_INSTANCE_CALLBACK  lpCallback,
void *  lpData 
)

Definition at line 213 of file sys_class.cpp.

bool Wintermute::SystemClass::isPersistent (  )  const [inline]

Definition at line 90 of file sys_class.h.

void Wintermute::SystemClass::loadInstance ( void *  instance,
BasePersistenceManager PersistMgr 
)

Definition at line 199 of file sys_class.cpp.

void Wintermute::SystemClass::loadTable ( BaseGame Game,
BasePersistenceManager PersistMgr 
)

Definition at line 150 of file sys_class.cpp.

bool Wintermute::SystemClass::removeAllInstances (  ) 

Definition at line 60 of file sys_class.cpp.

bool Wintermute::SystemClass::removeInstance ( void *  instance  ) 

Definition at line 86 of file sys_class.cpp.

void Wintermute::SystemClass::resetSavedIDs (  ) 

Definition at line 205 of file sys_class.cpp.

void Wintermute::SystemClass::saveInstances ( BaseGame Game,
BasePersistenceManager PersistMgr 
)

Definition at line 185 of file sys_class.cpp.

void Wintermute::SystemClass::saveTable ( BaseGame Game,
BasePersistenceManager PersistMgr 
)

Definition at line 138 of file sys_class.cpp.

void Wintermute::SystemClass::setID ( int  id  )  [inline]

Definition at line 79 of file sys_class.h.


Member Data Documentation

Definition at line 117 of file sys_class.h.

Definition at line 114 of file sys_class.h.

Definition at line 125 of file sys_class.h.

Definition at line 122 of file sys_class.h.

Definition at line 118 of file sys_class.h.

Definition at line 116 of file sys_class.h.

Definition at line 113 of file sys_class.h.

Definition at line 111 of file sys_class.h.

Definition at line 112 of file sys_class.h.

Definition at line 115 of file sys_class.h.


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


Generated on Sat Sep 26 2020 05:04:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge