Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

EventSelector Class Reference

this class waits for inputs events and then dispatch them for treatment. More...

Collaboration diagram for EventSelector:

Collaboration graph
[legend]
List of all members.

Public Methods

 EventSelector (int tcpPort)
void read_char ()
 equivalent to handleInputCommand when readline is not used.

void loop ()
 wait for events and process them.


Static Public Methods

void handleInputCommand (char *buffer)
 callback for readline.


Private Attributes

CmdLine cmd
 keyboard or stdin input is treated by CmdLine.

GdbRemote gdbRemote
 tcp/ip data is passed to GdbRemote for treatment.

bool withReadLine
int commandResult
 Stores the result of a command.


Detailed Description

this class waits for inputs events and then dispatch them for treatment.

Definition at line 51 of file main.cpp.


Constructor & Destructor Documentation

EventSelector::EventSelector int    tcpPort
 

Constructs the EventSelector and configures libreadline. Check if stdin is a terminal or not, to decide wether to use libreadline or not. Also constructs a GdbRemote object by passing it pxa250Ptr.

Definition at line 99 of file main.cpp.

References handleInputCommand(), and withReadLine.


Member Data Documentation

bool EventSelector::withReadLine [private]
 

true if using libreadline. Impossible to use libreadline if stdin is not a terminal.

Definition at line 63 of file main.cpp.

Referenced by EventSelector().


The documentation for this class was generated from the following file:
Generated on Fri May 16 13:01:49 2003 for Jelie by doxygen1.2.15