mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-20 01:11:37 +03:00
fee4095624
synergy.cpp and server.cpp into cmd/synergyd as synergyd.cpp. Moved and renamed related files. Moved remaining source files into lib/.... Modified and added makefiles as appropriate. Result is that library files are under lib with each library in its own directory and program files are under cmd with each command in its own directory.
45 lines
841 B
C++
45 lines
841 B
C++
#ifndef IOUTPUTSTREAM_H
|
|
#define IOUTPUTSTREAM_H
|
|
|
|
#include "IInterface.h"
|
|
#include "BasicTypes.h"
|
|
|
|
//! Output stream interface
|
|
/*!
|
|
Defines the interface for all output streams.
|
|
*/
|
|
class IOutputStream : public IInterface {
|
|
public:
|
|
//! @name manipulators
|
|
//@{
|
|
|
|
//! Close the stream
|
|
/*!
|
|
Closes the stream. Attempting to write() after close() throws
|
|
XIOClosed.
|
|
*/
|
|
virtual void close() = 0;
|
|
|
|
//! Write to stream
|
|
/*!
|
|
Write \c n bytes from \c buffer to the stream. If this can't
|
|
complete immeditely it will block. If cancelled, an indeterminate
|
|
amount of data may have been written.
|
|
|
|
(cancellation point)
|
|
*/
|
|
virtual UInt32 write(const void* buffer, UInt32 n) = 0;
|
|
|
|
//! Flush the stream
|
|
/*!
|
|
Waits until all buffered data has been written to the stream.
|
|
|
|
(cancellation point)
|
|
*/
|
|
virtual void flush() = 0;
|
|
|
|
//@}
|
|
};
|
|
|
|
#endif
|