diff options
Diffstat (limited to 'src/include/iodevice.h')
-rw-r--r-- | src/include/iodevice.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/include/iodevice.h b/src/include/iodevice.h index 1612d3a..8b1314e 100644 --- a/src/include/iodevice.h +++ b/src/include/iodevice.h @@ -61,12 +61,12 @@ namespace Binc { /*! Destructs an IODevice; does nothing. */ - virtual ~IODevice(void); + virtual ~IODevice(); /*! Clears all data in the input and output buffers. */ - void clear(void); + void clear(); /*! Sets one or more flags. @@ -129,7 +129,7 @@ namespace Binc { \sa setTimeout() */ - unsigned int getTimeout(void) const; + unsigned int getTimeout() const; enum LogLevel { ErrorLevel, InfoLevel, WarningLevel, DebugLevel }; @@ -161,7 +161,7 @@ namespace Binc { \sa setOutputLevel() */ - LogLevel getOutputLevel(void) const; + LogLevel getOutputLevel() const; /*! Sets the current output level limit. Write operations with a @@ -177,26 +177,26 @@ namespace Binc { \sa setOutputLevelLimit() */ - LogLevel getOutputLevelLimit(void) const; + LogLevel getOutputLevelLimit() const; /*! Returns the number of bytes that have been read from this device since it was created. */ - unsigned int getReadCount(void) const; + unsigned int getReadCount() const; /*! Returns the number of bytes that have been written to this device since it was created. */ - unsigned int getWriteCount(void) const; + unsigned int getWriteCount() const; /*! Calling this function enables the built-in protocol dumping feature in the device. All input and output to this device will be dumped to a file in /tmp. */ - void enableProtocolDumping(void); + void enableProtocolDumping(); /*! Writes data to the device. Depending on the value of the max @@ -216,7 +216,7 @@ namespace Binc { Returns true if data can be read from the device; otherwise returns false. */ - virtual bool canRead(void) const; + virtual bool canRead() const; /*! Reads data from the device, and stores this in a string. Returns @@ -261,25 +261,25 @@ namespace Binc { Flushes the output buffer. Writes all data in the output buffer to the device. */ - bool flush(void); + bool flush(); /*! Returns the type of error that most recently occurred. */ - Error getLastError(void) const; + Error getLastError() const; /*! Returns a human readable description of the error that most recently occurred. If no known error has occurred, this method returns "Unknown error". */ - std::string getLastErrorString(void) const; + std::string getLastErrorString() const; /*! Returns the type of service provided by this device. Two valid return values are "client" and "log". */ - virtual std::string service(void) const; + virtual std::string service() const; protected: /*! @@ -292,14 +292,14 @@ namespace Binc { whether a timeout occurred or whether an error with the device prevents further writing. */ - virtual bool waitForWrite(void) const; + virtual bool waitForWrite() const; /*! Waits until data can be read from the device. \sa waitForWrite() */ - virtual bool waitForRead(void) const; + virtual bool waitForRead() const; /*! Types of results from a write. @@ -312,7 +312,7 @@ namespace Binc { written, returns WriteDone. If an error occurred, returns WriteError. */ - virtual WriteResult write(void); + virtual WriteResult write(); /*! Reads data from the device, and stores it in the input buffer. @@ -324,7 +324,7 @@ namespace Binc { The number of bytes read from the device is undefined. */ - virtual bool fillInputBuffer(void); + virtual bool fillInputBuffer(); BincStream inputBuffer; BincStream outputBuffer; |