|

INTRODUCTION
Overview
Download and Install
Documentation
Publications
REPOSITORY
Libraries
DEVELOPER
Dev Guide
Dashboard
PEOPLE
Contributors
Users

Project
Download
Mailing lists
|
|
|
10 #ifndef GBXSERIALACFR_SERIAL_H
11 #define GBXSERIALACFR_SERIAL_H
14 #include <gbxserialacfr/uncopyable.h>
15 #include <gbxserialacfr/lockfile/lockfile.h>
17 namespace gbxserialacfr {
27 : message_(message) {}
29 : message_(message) {}
31 virtual const char* what() const throw() { return message_.c_str(); }
48 Timeout( int s, int us )
61 Serial( const std::string &dev,
65 bool useLockFile = true );
82 const Timeout & timeout() const { return timeout_; }
87 int read( void *buf, int count);
128 int write( const void *buf, int count);
159 WaitStatus waitForDataOrTimeout( void);
162 void open( int flags=0);
165 void close() throw();
167 bool timeoutsEnabled() const
168 { return !( timeout_.sec == 0 && timeout_.usec == 0 ); }
170 const std::string dev_;
177 lockfile::LockFile *lockFile_;
|
|