SystemKeyboard Class Reference

#include <SystemKeyboard.h>

Inheritance diagram for SystemKeyboard:

Inheritance graph
[legend]
Collaboration diagram for SystemKeyboard:

Collaboration graph
[legend]
List of all members.

Detailed Description

Main System class responsible for getting key presses.

This is used as a test task.


Public Types

enum  Status {
  OK,
  NEEDRESET,
  NEEDREBOOT
}
 An enumeration of status values that are returned by the execute method. More...

Public Member Functions

virtual SystemTask::Status execute ()
 This method must be implemented in the realization.

Static Public Member Functions

static SystemKeyboardgetInstance ()
 A static method to get the one and only instance of the SystemKeyboard.

Private Member Functions

 SystemKeyboard ()
 Constructor.


Member Enumeration Documentation

enum SystemTask::Status [inherited]
 

An enumeration of status values that are returned by the execute method.

Enumerator:
OK  Everything went well.
NEEDRESET  Things didn't go well, and the system cycle should reset.
NEEDREBOOT  Things really didn't go well, and the system should reboot.


Constructor & Destructor Documentation

SystemKeyboard::SystemKeyboard  )  [private]
 

Constructor.

Kept private to force users to invoke the getInstance method.


Member Function Documentation

SystemTask::Status SystemKeyboard::execute  )  [virtual]
 

This method must be implemented in the realization.

The execute() method is invoked each cycle of the main loop.

Returns:
Status

Implements SystemTask.

SystemKeyboard & SystemKeyboard::getInstance  )  [static]
 

A static method to get the one and only instance of the SystemKeyboard.

Returns:
SystemKeyboard&


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 14:04:51 2006 for MegaPlusPlus by  doxygen 1.4.6