Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

openmaiaProcessesHandler Class Reference
[openmaia application objects]

#include <openmaiaProcessesHandler.h>


Public Member Functions

 openmaiaProcessesHandler ()
void StartProcess (wxString, wxString, wxString)
void StopProcess (wxString)
void StopAllProcesses ()
void NotifyProcessStop (int)
int GetCount ()
void FlushStreams ()

Private Member Functions

 WX_DECLARE_STRING_HASH_MAP (openmaiaProcess *, ProcessHash)
 WX_DECLARE_HASH_MAP (int, wxString, wxIntegerHash, wxIntegerEqual, PID2NameHashMap)
 WX_DECLARE_STRING_HASH_MAP (int, Name2PIDHashmap)

Private Attributes

ProcessHash process
PID2NameHashMap processName
Name2PIDHashmap processPID


Detailed Description

This class is used to handle openmaia agents processes. The class starts processes using wxExecute function and store its informations and process data. When a process exits the class notify its exit to application controller class.


Constructor & Destructor Documentation

openmaiaProcessesHandler::openmaiaProcessesHandler  ) 
 

Build a void structure to store processes data


Member Function Documentation

void openmaiaProcessesHandler::FlushStreams  ) 
 

Flush all streams of subprocesses to start out and standard err

Returns:
true is almost a process has more input

int openmaiaProcessesHandler::GetCount  ) 
 

Return the number of the processes running

void openmaiaProcessesHandler::NotifyProcessStop int  id  ) 
 

This method is used by openmaiaProcess class to notify that its process has stopped.

void openmaiaProcessesHandler::StartProcess wxString  name,
wxString  options,
wxString  path
 

Start a specific subprocess.

Parameters:
name name of the process to start.
options options of the process.
path path of the binary file (without final slash)

void openmaiaProcessesHandler::StopAllProcesses  ) 
 

Stop all subprocesses

void openmaiaProcessesHandler::StopProcess wxString  name  ) 
 

Stop a specific subprocess.

Parameters:
name name of the process to stop.

openmaiaProcessesHandler::WX_DECLARE_HASH_MAP int  ,
wxString  ,
wxIntegerHash  ,
wxIntegerEqual  ,
PID2NameHashMap 
[private]
 

openmaiaProcessesHandler::WX_DECLARE_STRING_HASH_MAP int  ,
Name2PIDHashmap 
[private]
 

openmaiaProcessesHandler::WX_DECLARE_STRING_HASH_MAP openmaiaProcess ,
ProcessHash 
[private]
 


Field Documentation

ProcessHash openmaiaProcessesHandler::process [private]
 

PID2NameHashMap openmaiaProcessesHandler::processName [private]
 

Name2PIDHashmap openmaiaProcessesHandler::processPID [private]
 


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