

Public Member Functions | |
| void | Close () throw (SerialPort::NotOpen) |
| SerialPort::BaudRate | GetBaudRate () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| SerialPort::CharacterSize | GetCharSize () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| bool | GetCts () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| bool | GetDsr () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| bool | GetDtr () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| SerialPort::FlowControl | GetFlowControl () const throw ( SerialPort::NotOpen ) |
| SerialPort::StopBits | GetNumOfStopBits () const throw (SerialPort::NotOpen) |
| SerialPort::Parity | GetParity () const throw (SerialPort::NotOpen) |
| bool | GetRts () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| void | HandlePosixSignal (int signalNumber) |
| bool | IsDataAvailable () const throw ( SerialPort::NotOpen, std::runtime_error ) |
| bool | IsOpen () const |
| void | Open () throw ( SerialPort::OpenFailed, SerialPort::AlreadyOpen ) |
| void | Read (SerialPort::DataBuffer &dataBuffer, const unsigned int numOfBytes, const unsigned int msTimeout) throw ( SerialPort::NotOpen, SerialPort::ReadTimeout, std::runtime_error ) |
| unsigned char | ReadByte (const unsigned int msTimeout=0) throw ( SerialPort::NotOpen, SerialPort::ReadTimeout, std::runtime_error ) |
| const std::string | ReadLine (const unsigned int msTimeout=0, const char lineTerminator= '\n') throw ( SerialPort::NotOpen, SerialPort::ReadTimeout, std::runtime_error ) |
| SerialPortImpl (const std::string &serialPortName) | |
| void | SetBaudRate (const SerialPort::BaudRate baudRate) throw ( SerialPort::NotOpen, SerialPort::UnsupportedBaudRate, std::invalid_argument, std::runtime_error ) |
| void | SetCharSize (const SerialPort::CharacterSize charSize) throw ( SerialPort::NotOpen, std::invalid_argument, std::runtime_error ) |
| void | SetDtr (const bool dtrState) throw ( SerialPort::NotOpen, std::runtime_error ) |
| void | SetFlowControl (const SerialPort::FlowControl flowControl) throw ( SerialPort::NotOpen, std::invalid_argument ) |
| void | SetNumOfStopBits (const SerialPort::StopBits numOfStopBits) throw ( SerialPort::NotOpen, std::invalid_argument ) |
| void | SetParity (const SerialPort::Parity parityType) throw ( SerialPort::NotOpen, std::invalid_argument, std::runtime_error ) |
| void | SetRts (const bool rtsState) throw ( SerialPort::NotOpen, std::runtime_error ) |
| void | Write (const unsigned char *dataBuffer, const unsigned int bufferSize) throw ( SerialPort::NotOpen, std::runtime_error ) |
| void | Write (const SerialPort::DataBuffer &dataBuffer) throw ( SerialPort::NotOpen, std::runtime_error ) |
| void | WriteByte (const unsigned char dataByte) throw ( SerialPort::NotOpen, std::runtime_error ) |
| ~SerialPortImpl () | |
Private Member Functions | |
| bool | GetModemControlLine (const int modemLine) const throw ( SerialPort::NotOpen, std::runtime_error ) |
| void | SetModemControlLine (const int modemLine, const bool lineState) throw ( SerialPort::NotOpen, std::runtime_error ) |
Private Attributes | |
| int | mFileDescriptor |
| std::queue< unsigned char > | mInputBuffer |
| bool | mIsOpen |
| termios | mOldPortSettings |
| std::string | mSerialPortName |
Definition at line 63 of file SerialPort.cpp.