

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_ |
| 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().

| 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().

| 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().

| 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().


| 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] |
| 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().

int fd_ [private] |
string fileName_ [private] |
bool hasError_ [private] |
1.5.4