Odyssey::SystemManager Class Reference

Manages the System within the framework. More...

#include <SystemManager.h>

Inheritance diagram for Odyssey::SystemManager:

Odyssey::Manager< SystemPtr > List of all members.

Public Member Functions

SystemWeakPtr createSystem (const String &typeID, const String &name)
 Creates a new, dynamic system with the given name.
SystemWeakPtr getSystem (const String &name) const
 Returns the system reference with the given name.
SystemWeakPtr getSystem (size_t index) const
 Returns the system at the given index.
void _notifyUpdateChange (System *system, bool active)
 Internal method for updating active update status.
void update ()
 Update all the active systems.
void updateAll ()
 Update all systems, regardless of active status.
void sendMessageToAll (const Message &msg)
 Sends the given message to all systems.
void postMessageToAll (const Message &msg)
 Posts the given message to all systems.

Static Public Member Functions

static SystemManager & getSingleton ()
 Returns the one and only instance of this manager.

Detailed Description

Manages the System within the framework.

This class manages the Systems that exist in the framework. It holds ownership over them and exposed methods for creating and updating them.


Member Function Documentation

void Odyssey::SystemManager::_notifyUpdateChange (  System *  system,
bool  active
) 
 

Internal method for updating active update status.

SystemWeakPtr Odyssey::SystemManager::createSystem (  const String &  typeID,
const String &  name
) 
 

Creates a new, dynamic system with the given name.

static SystemManager& Odyssey::SystemManager::getSingleton (   )  [static]
 

Returns the one and only instance of this manager.

SystemWeakPtr Odyssey::SystemManager::getSystem (  size_t  index  )  const
 

Returns the system at the given index.

SystemWeakPtr Odyssey::SystemManager::getSystem (  const String &  name  )  const
 

Returns the system reference with the given name.

void Odyssey::SystemManager::postMessageToAll (  const Message &  msg  ) 
 

Posts the given message to all systems.

void Odyssey::SystemManager::sendMessageToAll (  const Message &  msg  ) 
 

Sends the given message to all systems.

void Odyssey::SystemManager::update (   ) 
 

Update all the active systems.

void Odyssey::SystemManager::updateAll (   ) 
 

Update all systems, regardless of active status.


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:53 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO