]> Git Repo - serial.git/blame - src/impl/unix.cc
Working on pimpl implementation of serial.
[serial.git] / src / impl / unix.cc
CommitLineData
18284ae7
WW
1#include "serial/impl/unix.h"
2
3using namespace serial;
4
5Serial_pimpl::Serial_pimpl (const std::string &port, int baudrate,
6 long timeout, bytesize_t bytesize,
7 parity_t parity, stopbits_t stopbits,
8 flowcontrol_t flowcontrol)
9: port(port), baudrate(baudrate), timeout(timeout), bytesize(bytesize),
10 parity(parity), stopbits(stopbits), flowcontrol(flowcontrol)
11{
12
13}
14
15Serial_pimpl::~Serial_pimpl () {
16
17}
18
19void
20Serial_pimpl::open () {
21
22}
23
24void
25Serial_pimpl::close () {
26
27}
28bool
29Serial_pimpl::isOpen () {
30
31}
32
33size_t
34Serial_pimpl::read (unsigned char* buffer, size_t size = 1) {
35
36}
37
38std::string
39Serial_pimpl::read (size_t size = 1) {
40
41}
42
43size_t
44Serial_pimpl::read (std::string &buffer, size_t size = 1) {
45
46}
47
48size_t
49Serial_pimpl::write (unsigned char* data, size_t length) {
50
51}
52
53size_t
54Serial_pimpl::write (const std::string &data) {
55
56}
57
58void
59Serial_pimpl::setPort (const std::string &port) {
60
61}
62
63std::string
64Serial_pimpl::getPort () const {
65
66}
67
68void
69Serial_pimpl::setTimeout (long timeout) {
70
71}
72
73long
74Serial_pimpl::getTimeout () const {
75
76}
77
78void
79Serial_pimpl::setBaudrate (int baudrate) {
80
81}
82
83int
84Serial_pimpl::getBaudrate () const {
85
86}
87
88void
89Serial_pimpl::setBytesize (bytesize_t bytesize) {
90
91}
92
93bytesize_t
94Serial_pimpl::getBytesize () const {
95
96}
97
98void
99Serial_pimpl::setParity (parity_t parity) {
100
101}
102
103parity_t
104Serial_pimpl::getParity () const {
105
106}
107
108void
109Serial_pimpl::setStopbits (stopbits_t stopbits) {
110
111}
112
113stopbits_t
114Serial_pimpl::getStopbits () const {
115
116}
117
118void
119Serial_pimpl::setFlowcontrol (flowcontrol_t flowcontrol) {
120
121}
122
123flowcontrol_t
124Serial_pimpl::getFlowcontrol () const {
125
126}
127
128
129
130
131
132
This page took 0.034273 seconds and 4 git commands to generate.