A stream that can optionally compress its data.
More...
#include <OStream.hpp>
|
| OStream (bool compressionEnabled) |
| Construct a new OStream object.
|
|
| OStream (OStream const &)=delete |
|
| OStream (OStream &&)=delete |
|
template<typename T > |
OStream & | operator<< (T const &value) |
| Write to the stream.
|
|
std::string | data () && |
| Get the data from the stream.
|
|
A stream that can optionally compress its data.
◆ OStream()
util::prometheus::OStream::OStream |
( |
bool | compressionEnabled | ) |
|
Construct a new OStream object.
- Parameters
-
compressionEnabled | Whether to compress the data |
◆ data()
std::string util::prometheus::OStream::data |
( |
| ) |
&& |
Get the data from the stream.
- Note
- This resets the stream and clears the buffer. Stream cannot be used after this.
- Returns
- The data
◆ operator<<()
template<typename T >
OStream & util::prometheus::OStream::operator<< |
( |
T const & | value | ) |
|
|
inline |
Write to the stream.
- Template Parameters
-
T | Type of the value to write |
- Parameters
-
- Returns
- The stream
The documentation for this class was generated from the following files:
- /__w/clio/clio/src/util/prometheus/OStream.hpp
- /__w/clio/clio/src/util/prometheus/OStream.cpp