mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-09 00:07:35 +01:00
enh(Foundation): modernised header files (override, using, nullptr, ...)
This commit is contained in:
@@ -32,20 +32,20 @@ class Foundation_API PipeStreamBuf: public BufferedStreamBuf
|
||||
/// This is the streambuf class used for reading from and writing to a Pipe.
|
||||
{
|
||||
public:
|
||||
typedef BufferedStreamBuf::openmode openmode;
|
||||
using openmode = BufferedStreamBuf::openmode;
|
||||
|
||||
PipeStreamBuf(const Pipe& pipe, openmode mode);
|
||||
/// Creates a PipeStreamBuf with the given Pipe.
|
||||
|
||||
~PipeStreamBuf();
|
||||
~PipeStreamBuf() override;
|
||||
/// Destroys the PipeStreamBuf.
|
||||
|
||||
void close();
|
||||
/// Closes the pipe.
|
||||
|
||||
protected:
|
||||
int readFromDevice(char* buffer, std::streamsize length);
|
||||
int writeToDevice(const char* buffer, std::streamsize length);
|
||||
int readFromDevice(char* buffer, std::streamsize length) override;
|
||||
int writeToDevice(const char* buffer, std::streamsize length) override;
|
||||
|
||||
private:
|
||||
enum
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
PipeIOS(const Pipe& pipe, openmode mode);
|
||||
/// Creates the PipeIOS with the given Pipe.
|
||||
|
||||
~PipeIOS();
|
||||
~PipeIOS() override;
|
||||
/// Destroys the PipeIOS.
|
||||
///
|
||||
/// Flushes the buffer, but does not close the pipe.
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
PipeOutputStream(const Pipe& pipe);
|
||||
/// Creates the PipeOutputStream with the given Pipe.
|
||||
|
||||
~PipeOutputStream();
|
||||
~PipeOutputStream() override;
|
||||
/// Destroys the PipeOutputStream.
|
||||
///
|
||||
/// Flushes the buffer, but does not close the pipe.
|
||||
@@ -109,7 +109,7 @@ public:
|
||||
PipeInputStream(const Pipe& pipe);
|
||||
/// Creates the PipeInputStream with the given Pipe.
|
||||
|
||||
~PipeInputStream();
|
||||
~PipeInputStream() override;
|
||||
/// Destroys the PipeInputStream.
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user