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

maiaCommandParser Class Reference

#include <maiaCommandParser.h>

Inheritance diagram for maiaCommandParser:

omUICommandParser omObject

Public Member Functions

 maiaCommandParser ()
void Init ()
void Reload ()
void Start ()
void Stop ()
void NotifyTCPMessage (omTCPMessage)
bool ParseAction (omCommand)
void Action ()
void GoUp ()
void GoDown ()
void GoLeft ()
void GoRight ()

Private Attributes

int actionKey
int upKey
int downKey
int leftKey
int rightKey
 Keyboard driver parameter.

bool actionOnPress
bool grabKeys
bool keyboardEnabled
 Keyboar driver Flag.

bool joystickEnabled
 Joystick driver flag.

bool serialEnabled
 Serial driver flag.

wxString serialPort
 Serial driver parameter (in unix style, es /dev/ttyS0).

omKeyboardDriverkbDriver
 Keyboard driver object.

omJoystickDriverjDriver
 Joystick driver object.

omSerialDriversDriver
 Serial driver object.

maiaKeyboardkeyboard
 Pointer to virtual keyboard object.

maiaOptionsopts
 Pointer to application options object.

omConnectorconnector
 Pointer to connector.


Detailed Description

This class extends functionalities of omUICommandParser. This object is the main event handling object of the maia application, events are received from periperals drivers (keyboard, serial and joy) and from other agents via communication object (omConnector).

All the periperal objects are instantiated from maiaCommandParser.


Constructor & Destructor Documentation

maiaCommandParser::maiaCommandParser  ) 
 

Build the class


Member Function Documentation

void maiaCommandParser::Action  )  [virtual]
 

Action event received

Reimplemented from omObject.

void maiaCommandParser::GoDown  )  [virtual]
 

GoDown event received

Reimplemented from omObject.

void maiaCommandParser::GoLeft  )  [virtual]
 

GoLeft event received

Reimplemented from omObject.

void maiaCommandParser::GoRight  )  [virtual]
 

GoRight event received

Reimplemented from omObject.

void maiaCommandParser::GoUp  )  [virtual]
 

GoUp event received

Reimplemented from omObject.

void maiaCommandParser::Init  )  [virtual]
 

Initialize the class. This initialization is done after the construction.

Reimplemented from omUICommandParser.

void maiaCommandParser::NotifyTCPMessage omTCPMessage  message  )  [virtual]
 

Process NotifyTCPMessage event. A TCP Message is coming from an other agent in the federation and is notified by the connector object of the application.
This method handles messages regarding options communication from maia and maiaconfig.

Parameters:
message message received.

Reimplemented from omObject.

bool maiaCommandParser::ParseAction omCommand  m  )  [virtual]
 

Parse Action coming from other object.

Parameters:
m Action received.

Reimplemented from omUICommandParser.

void maiaCommandParser::Reload  )  [virtual]
 

Reload options after parameters change.

Reimplemented from omObject.

void maiaCommandParser::Start  )  [virtual]
 

Some drivers pools the device to get its status. This method start all drivers timers.

Reimplemented from omObject.

void maiaCommandParser::Stop  )  [virtual]
 

Stop all drivers timers

Reimplemented from omObject.


Field Documentation

int maiaCommandParser::actionKey [private]
 

bool maiaCommandParser::actionOnPress [private]
 

omConnector* maiaCommandParser::connector [private]
 

Pointer to connector.

int maiaCommandParser::downKey [private]
 

bool maiaCommandParser::grabKeys [private]
 

omJoystickDriver* maiaCommandParser::jDriver [private]
 

Joystick driver object.

bool maiaCommandParser::joystickEnabled [private]
 

Joystick driver flag.

omKeyboardDriver* maiaCommandParser::kbDriver [private]
 

Keyboard driver object.

maiaKeyboard* maiaCommandParser::keyboard [private]
 

Pointer to virtual keyboard object.

Reimplemented from omUICommandParser.

bool maiaCommandParser::keyboardEnabled [private]
 

Keyboar driver Flag.

int maiaCommandParser::leftKey [private]
 

maiaOptions* maiaCommandParser::opts [private]
 

Pointer to application options object.

int maiaCommandParser::rightKey [private]
 

Keyboard driver parameter.

omSerialDriver* maiaCommandParser::sDriver [private]
 

Serial driver object.

bool maiaCommandParser::serialEnabled [private]
 

Serial driver flag.

wxString maiaCommandParser::serialPort [private]
 

Serial driver parameter (in unix style, es /dev/ttyS0).

int maiaCommandParser::upKey [private]
 


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