LibSerial 1.0.0
LibSerial provides a convenient, object oriented approach to accessing serial ports on POSIX systems.
Loading...
Searching...
No Matches
Class Hierarchy

Go to the graphical class hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically:
[detail level 12]
 CLibSerial::SerialPort::ImplementationSerialPort::Implementation is the SerialPort implementation class
 CLibSerial::SerialStreamBuf::ImplementationSerialStreamBuf::Implementation is the SerialStreamBuf implementation class
 Cstd::iostream
 CLibSerial::SerialStreamSerialStream is a stream class for accessing serial ports on POSIX operating systems. A lot of the functionality of this class has been obtained by looking at the code of libserial package by Linas Vepstas, (linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g) and the excellent document on serial programming by Michael R. Sweet. This document can be found at <ahref="http://www.easysw.com/~mike/serial/serial.html"> http://www.easysw.com/~mike/serial/serial.html. The libserial package can be found at <ahref="http://www.linas.org/serial/"> http://www.linas.org/serial/. This class allows one to set various parameters of a serial port and then access it like a simple fstream. (In fact, that is exactly what it does!) It sets the parameters of the serial port by maintaining a file descriptor for the port and uses the basic_fstream functions for the IO. We have not implemented any file locking yet but it will be added soon
 Cstd::logic_error
 CLibSerial::AlreadyOpenException error thrown when the serial port is already open
 CLibSerial::NotOpenException error thrown when the serial port is not open
 Cstd::runtime_error
 CLibSerial::OpenFailedException error thrown when the serial port could not be opened
 CLibSerial::ReadTimeoutException error thrown when data could not be read from the serial port before the timeout had been exceeded
 CLibSerial::SerialPortSerialPort allows an object oriented approach to serial port communication. A serial port object can be created to allow opening the port with specified modes and settings. The SerialPort class also provides Get/Set methods to access the most commonly utilized parameters associated with serial port communication
 Cstd::streambuf
 CLibSerial::SerialStreamBufSerialStreamBuf is the streambuf subclass used by SerialStream. This subclass takes care of opening the serial port file in the required modes and providing the corresponding file descriptor to SerialStream so that various parameters associated with the serial port can be set. Several features of this streambuf class resemble those of std::filebuf, however this class it not made a subclass of filebuf because we need access to the file descriptor associated with the serial port and the standard filebuf does not provide access to it