1#ifndef __DCL_SERIAL_PORT_H__
2#define __DCL_SERIAL_PORT_H__ 20110223
4#ifndef __DCL_CONFIG_H__
10 #define B2400 CBR_2400
11 #define B4800 CBR_4800
12 #define B9600 CBR_9600
13 #define B19200 CBR_19200
14 #define B38400 CBR_38400
15 #define B57600 CBR_57600
16 #define B115200 CBR_115200
21#ifndef __DCL_POLL_ABLE_H__
55 virtual ~SerialPort();
61 SerialPort(
const String& _path,
int _oflags,
62 size_t _inQueue = 4096,
size_t _outQueue = 4096
73 void open(
const String& _path,
int _oflags,
74 size_t _inQueue = 4096,
size_t _outQueue = 4096
118 BaudRate _baudRate = BR_38400, ByteSize _byteSize = BS_8NO,
119 StopBits _stopBits = SB_1, FlowControl _flowControl = FC_NONE
145 OVERLAPPED __overlapped;
147 bool waitCommEvent();
158 static bool access(
const String& _path);
#define DECLARE_CLASSINFO(class_name)
__DCL_BEGIN_NAMESPACE typedef PollThread SerialPollThread
void open(const String &_path, int _oflags=READONLY, int _mode=0666) __DCL_THROWS1(IOException *)
virtual bool onEvent(short _revents, PollThread *_pPollThread) __DCL_THROWS1(IOException *)
static bool access(const String &_path)