Term Class Reference

Inheritance diagram for Term:

Inheritance graph
[legend]
Collaboration diagram for Term:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 47 of file term.cc.


Public Member Functions

 Term (int fd, const string &fileName)
 ~Term ()
virtual bool hasError () const
virtual bool writeAck ()
 write "A" which means accomplished
virtual bool writeByte (unsigned char data)
 write hex-byte to term
virtual bool writeWord (unsigned int data)
 write hex-word to term
virtual bool writeText (const std::string &data)
 write string to term
virtual bool getChar (char &c)
virtual bool hasInput (int timeout)

Private Member Functions

bool write (const std::string &data)

Private Attributes

int fd_
string fileName_
bool hasError_

Constructor & Destructor Documentation

Term ( int  fd,
const string &  fileName 
)

Definition at line 102 of file term.cc.

~Term (  ) 

Definition at line 110 of file term.cc.

References fd_.


Member Function Documentation

virtual bool hasError (  )  const [inline, virtual]

Return true if any error was detected.

Implements IErrorSensitive.

Definition at line 51 of file term.cc.

References hasError_.

bool writeAck (  )  [virtual]

write "A" which means accomplished

Implements IWriter.

Definition at line 114 of file term.cc.

References writeText().

Here is the call graph for this function:

bool writeByte ( unsigned char  data  )  [virtual]

write hex-byte to term

Implements IWriter.

Definition at line 118 of file term.cc.

References StreamDecorator::C_LIGHT_CYAN, StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_NO_COLOR, and write().

Here is the call graph for this function:

bool writeWord ( unsigned int  data  )  [virtual]

write hex-word to term

Implements IWriter.

Definition at line 131 of file term.cc.

References StreamDecorator::C_LIGHT_CYAN, StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_NO_COLOR, and write().

Here is the call graph for this function:

bool writeText ( const std::string &  data  )  [virtual]

write string to term

Implements IWriter.

Definition at line 144 of file term.cc.

References StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_LIGHT_PURPLE, StreamDecorator::C_NO_COLOR, and write().

Referenced by writeAck().

Here is the call graph for this function:

Here is the caller graph for this function:

bool getChar ( char &  c  )  [virtual]

Implements ICharReader.

Definition at line 175 of file term.cc.

References bSignal, StreamDecorator::E_ERROR, StreamDecorator::E_NOTE, StreamDecorator::E_WARNING, fd_, and fileName_.

bool hasInput ( int  timeout  )  [virtual]

Implements ICharReader.

Definition at line 209 of file term.cc.

References fd_.

bool write ( const std::string &  data  )  [private]

Definition at line 153 of file term.cc.

References StreamDecorator::E_ERROR, StreamDecorator::E_NOTE, fd_, fileName_, and hasError_.

Referenced by writeByte(), writeText(), and writeWord().

Here is the caller graph for this function:


Member Data Documentation

int fd_ [private]

Definition at line 60 of file term.cc.

Referenced by getChar(), hasInput(), write(), and ~Term().

string fileName_ [private]

Definition at line 61 of file term.cc.

Referenced by getChar(), and write().

bool hasError_ [private]

Definition at line 62 of file term.cc.

Referenced by hasError(), and write().


The documentation for this class was generated from the following file:
Generated on Fri Jul 10 22:42:18 2009 for rob08 by  doxygen 1.5.4