29 #ifndef __LOGREADERPORT_H
30 #define __LOGREADERPORT_H
93 ssize_t Read (
void *
const buffer,
size_t count);
95 ssize_t ReadFull (
void *
const buffer,
size_t count);
97 ssize_t BytesAvailable ();
99 ssize_t BytesAvailableWait ();
101 ssize_t Write (
const void *
const buffer,
size_t count);
107 std::string GetStatus ()
const;
109 void SetTimeout (
Timeout timeout);
111 void SetCanRead (
bool canRead);
113 void SetCanWrite (
bool canWrite);
115 bool IsOpen ()
const;
119 std::string _logFileName;
120 unsigned int _strictness;
125 bool ProcessOption (
const std::string &option,
const std::string &value);
126 void CheckPort (
bool read);
133 #endif // __LOGREADERPORT_H
Simulated port using a log file.
An object used to represent timeouts.