29 #ifndef __LOGWRITERPORT_H 30 #define __LOGWRITERPORT_H 83 ssize_t Read (
void *
const buffer,
size_t count);
85 ssize_t ReadFull (
void *
const buffer,
size_t count);
87 ssize_t Skip (
size_t count);
90 ssize_t SkipUntil (uint8_t terminator,
unsigned int count);
92 ssize_t BytesAvailable ();
94 ssize_t BytesAvailableWait ();
96 ssize_t Write (
const void *
const buffer,
size_t count);
102 std::string GetStatus ()
const;
104 void SetTimeout (
Timeout timeout);
106 void SetCanRead (
bool canRead);
108 void SetCanWrite (
bool canWrite);
110 bool IsOpen ()
const;
115 std::string _logFileName;
117 void CheckPort (
bool read);
124 #endif // __LOGWRITERPORT_H Logging implementation of the Port class.
An object used to represent timeouts.