Drag[en]gine Game Engine  1.0
deCrashRecoverySystem Class Reference

Crash Recovery System. More...

#include <deCrashRecoverySystem.h>

Inheritance diagram for deCrashRecoverySystem:
deBaseSystem

Public Member Functions

Constructors and Destructors
 deCrashRecoverySystem (deEngine *engine)
 
 ~deCrashRecoverySystem ()
 
Management
deBaseCrashRecoveryModuleGetActiveModule () const
 
bool RecoverFromError ()
 
Overloadables
virtual void SetActiveModule (deLoadableModule *module)
 
virtual void ClearPermanents ()
 
virtual void PostStart ()
 
virtual void PreStop ()
 
- Public Member Functions inherited from deBaseSystem
 deBaseSystem (deEngine *engine, const char *systemName, int requiredModuleType)
 
virtual ~deBaseSystem ()
 
deEngineGetEngine () const
 
deLoadableModuleGetActiveLoadableModule () const
 
bool GetIsRunning () const
 
bool GetHasFailed () const
 
const char * GetSystemName () const
 
virtual bool CanStart ()
 
void SetHasFailed (bool hasFailed)
 
virtual void Start ()
 
virtual void Stop ()
 
void CheckAndActivateFirst (deModuleSystem::eModuleTypes type)
 
void LogInfo (const char *message)
 
void LogInfoFormat (const char *message,...)
 
void LogInfoFormatUsing (const char *message, va_list args)
 
void LogWarn (const char *message)
 
void LogWarnFormat (const char *message,...)
 
void LogWarnFormatUsing (const char *message, va_list args)
 
void LogError (const char *message)
 
void LogErrorFormat (const char *message,...)
 
void LogErrorFormatUsing (const char *message, va_list args)
 
void LogException (const deException &exception)
 

Detailed Description

Crash Recovery System.

Provides modules for handling errors in one of the single type engine systems during run time. Such modules take over the run time during an error and try to reach a working state again so the engine can continue running.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deCrashRecoverySystem()

deCrashRecoverySystem::deCrashRecoverySystem ( deEngine engine)

Creates a new crash recovery system linked to the given engine.

◆ ~deCrashRecoverySystem()

deCrashRecoverySystem::~deCrashRecoverySystem ( )

Cleans up the physics system.

Member Function Documentation

◆ ClearPermanents()

virtual void deCrashRecoverySystem::ClearPermanents ( )
virtual

Clears cross references and links that could lead to memory leaks. Do not forget to call the super function.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().

◆ GetActiveModule()

deBaseCrashRecoveryModule* deCrashRecoverySystem::GetActiveModule ( ) const
inline

◆ PostStart()

virtual void deCrashRecoverySystem::PostStart ( )
virtual

Carry out here actions right after the system started up.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().

◆ PreStop()

virtual void deCrashRecoverySystem::PreStop ( )
virtual

Carry out here actions right before the system shuts down.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().

◆ RecoverFromError()

bool deCrashRecoverySystem::RecoverFromError ( )

Yields control to the active crash recovery module.

Referenced by GetActiveModule().

◆ SetActiveModule()

virtual void deCrashRecoverySystem::SetActiveModule ( deLoadableModule module)
virtual

Sets the active loadable module. Do not forget to call the super function.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().


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