mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-09-22 20:27:17 +02:00
Update POCO library.
This commit is contained in:
14
vendor/POCO/Foundation/include/Poco/PipeStream.h
vendored
14
vendor/POCO/Foundation/include/Poco/PipeStream.h
vendored
@@ -33,22 +33,22 @@ class Foundation_API PipeStreamBuf: public BufferedStreamBuf
|
||||
{
|
||||
public:
|
||||
typedef BufferedStreamBuf::openmode openmode;
|
||||
|
||||
|
||||
PipeStreamBuf(const Pipe& pipe, openmode mode);
|
||||
/// Creates a PipeStreamBuf with the given Pipe.
|
||||
|
||||
~PipeStreamBuf();
|
||||
/// Destroys the PipeStreamBuf.
|
||||
|
||||
|
||||
void close();
|
||||
/// Closes the pipe.
|
||||
|
||||
|
||||
protected:
|
||||
int readFromDevice(char* buffer, std::streamsize length);
|
||||
int writeToDevice(const char* buffer, std::streamsize length);
|
||||
|
||||
private:
|
||||
enum
|
||||
enum
|
||||
{
|
||||
STREAM_BUFFER_SIZE = 1024
|
||||
};
|
||||
@@ -67,15 +67,15 @@ class Foundation_API PipeIOS: public virtual std::ios
|
||||
public:
|
||||
PipeIOS(const Pipe& pipe, openmode mode);
|
||||
/// Creates the PipeIOS with the given Pipe.
|
||||
|
||||
|
||||
~PipeIOS();
|
||||
/// Destroys the PipeIOS.
|
||||
///
|
||||
/// Flushes the buffer, but does not close the pipe.
|
||||
|
||||
|
||||
PipeStreamBuf* rdbuf();
|
||||
/// Returns a pointer to the internal PipeStreamBuf.
|
||||
|
||||
|
||||
void close();
|
||||
/// Flushes the stream and closes the pipe.
|
||||
|
||||
|
Reference in New Issue
Block a user