enh(Foundation): modernised header files (override, using, nullptr, ...)

This commit is contained in:
Matej Kenda
2025-02-10 14:52:52 +01:00
parent 9e4e039c04
commit e7687d4bba
184 changed files with 1487 additions and 1797 deletions

View File

@@ -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.
};