SPACE::Core::cProcessManager Class Reference

This class manages all the processes. More...

#include <cProcessManager.hpp>

Inheritance diagram for SPACE::Core::cProcessManager:
SPACE::Core::TSingleton< cProcessManager >

List of all members.

Public Member Functions

unsigned int Push (void(*_pFunction)(ePurpose _Purpose))
bool Pop (unsigned int _id)
bool Clear ()
bool Process ()

Detailed Description

This class manages all the processes.

The cProcessManager is like a linked list. The Process Order is: first added runs first

See also:
SPACE::Core::sProcess
SPACE::Core::TSingleton

Member Function Documentation

bool cProcessManager::Clear (  ) 

Deletes every sProcess.

Returns:
true => Everything was ok
false => Something failed
bool cProcessManager::Pop ( unsigned int  _id  ) 

Delete the sProces with the ID: _id

Parameters:
_id the ID of the sProcess to kill
Returns:
true => Everything was ok
false => Something failed
bool cProcessManager::Process (  ) 

Execute every sProcess. The ePurpose is "RUN_PURPOSE".

Returns:
true => Everything was ok
false => Something failed
unsigned int cProcessManager::Push ( void(*)(ePurpose _Purpose)  _pFunction  ) 

Puts a new sProcess into the "Linked list of Processes"

Parameters:
(*_pFunction) The function of the state
Returns:
> 0 => Everything was ok [!THIS IS THE ID OF THE PROCESS!]
0 => Something failed

The documentation for this class was generated from the following files:
Generated on Wed Apr 7 17:20:25 2010 for SPACE Engine by  doxygen 1.6.3