16 #ifndef OSMANIP_UTILITY_SSTREAM_HPP
17 #define OSMANIP_UTILITY_SSTREAM_HPP
51 int32_t
sync()
override;
84 int32_t
sync()
override;
90 void sync_redirection();
93 std::ostream *ostream_;
This class inherits Stringbuf and adds the ability to send output to a specific std::ostream buffer a...
Definition: sstream.hpp:69
int32_t sync() override
Synchronizes the buffer with the specified object.
Definition: sstream.cpp:154
Ostreambuf()
Construct a new Ostreambuf object. Default constructor will set the main attributes to default values...
Definition: sstream.cpp:85
void setOstream(std::ostream *ostream)
Sets the std::ostream* object to route output. If there is already an std::ostream* present,...
Definition: sstream.cpp:118
~Ostreambuf() override
Destructs OutputRedirector object. Calls this->pubsync() before being destroyed.
Definition: sstream.cpp:101
std::ostream * getOstream()
Returns the current std::ostream* object.
Definition: sstream.cpp:138
This class inherits std::stringbuf and adds additional functionality and thread safety.
Definition: sstream.hpp:40
std::mutex & getMutex()
Get the mutex for the object.
Definition: sstream.cpp:61
~Stringbuf() override
Destructs OutputRedirector object. Calls this->pubsync() before being destroyed.
Definition: sstream.cpp:45
Stringbuf()
Construct a new Stringbuf object. Default constructor will set the main attributes to default values.
int32_t sync() override
Calls the base class sync() function.
Definition: sstream.cpp:74
Definition: canvas.cpp:30