All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
TELEKYB_NAMESPACE::ThreadedSerialDevice Class Reference

#include <ThreadedSerialDevice.hpp>

Inheritance diagram for TELEKYB_NAMESPACE::ThreadedSerialDevice:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void closeDevice ()
std::string getTerminalChars () const
void openDevice (int oflag=O_RDWR|O_NOCTTY|O_NONBLOCK)
void registerSerialDeviceListener (SerialDeviceListener *listener)
void setTerminalChars (const std::string &terminalChars_)
 ThreadedSerialDevice ()
 ThreadedSerialDevice (const std::string &deviceName_, const std::string &terminalChars_="\r\n", bool autoOpen=true, int oflag=O_RDWR|O_NOCTTY|O_NONBLOCK)
void unRegisterSerialDeviceListener (SerialDeviceListener *listener)
virtual ~ThreadedSerialDevice ()

Protected Member Functions

void informListeners (const std::vector< char > &data)
void readingThreadFcn ()
void stopReadingThread ()

Protected Attributes

boost::thread * readingThread
bool readingThreadStopRequest
std::set< SerialDeviceListener * > serialDeviceListenerSet
std::string terminalChars

Detailed Description

Definition at line 30 of file ThreadedSerialDevice.hpp.


Constructor & Destructor Documentation

Definition at line 19 of file ThreadedSerialDevice.cpp.

TELEKYB_NAMESPACE::ThreadedSerialDevice::ThreadedSerialDevice ( const std::string &  deviceName_,
const std::string &  terminalChars_ = "\r\n",
bool  autoOpen = true,
int  oflag = O_RDWR | O_NOCTTY | O_NONBLOCK 
)

Definition at line 28 of file ThreadedSerialDevice.cpp.

Definition at line 44 of file ThreadedSerialDevice.cpp.


Member Function Documentation

Reimplemented from TELEKYB_NAMESPACE::SerialDevice.

Definition at line 156 of file ThreadedSerialDevice.cpp.

Definition at line 49 of file ThreadedSerialDevice.cpp.

void TELEKYB_NAMESPACE::ThreadedSerialDevice::informListeners ( const std::vector< char > &  data) [protected]

Definition at line 132 of file ThreadedSerialDevice.cpp.

void TELEKYB_NAMESPACE::ThreadedSerialDevice::openDevice ( int  oflag = O_RDWR | O_NOCTTY | O_NONBLOCK)

Reimplemented from TELEKYB_NAMESPACE::SerialDevice.

Definition at line 140 of file ThreadedSerialDevice.cpp.

Definition at line 59 of file ThreadedSerialDevice.cpp.

Definition at line 163 of file ThreadedSerialDevice.cpp.

void TELEKYB_NAMESPACE::ThreadedSerialDevice::setTerminalChars ( const std::string &  terminalChars_)

Definition at line 54 of file ThreadedSerialDevice.cpp.

Definition at line 122 of file ThreadedSerialDevice.cpp.

Definition at line 168 of file ThreadedSerialDevice.cpp.


Member Data Documentation

Definition at line 34 of file ThreadedSerialDevice.hpp.

Definition at line 37 of file ThreadedSerialDevice.hpp.

Definition at line 33 of file ThreadedSerialDevice.hpp.

Definition at line 35 of file ThreadedSerialDevice.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


telekyb_serial
Author(s): Martin Riedel
autogenerated on Mon Nov 11 2013 11:14:08