A wrapper around an OuputStream that adds formatted output operations used within the Bond Standard Library.
More...
#include <bond/io/outputstreamadaptor.h>
A wrapper around an OuputStream that adds formatted output operations used within the Bond Standard Library.
◆ OutputStreamAdaptor()
| Bond::OutputStreamAdaptor::OutputStreamAdaptor |
( |
OutputStream * | stream | ) |
|
|
inlineexplicit |
Constructs an OutputStreamAdaptor object.
- Parameters
-
| stream | The stream to which formatted output is written. |
◆ ClearFlags()
| void Bond::OutputStreamAdaptor::ClearFlags |
( |
| ) |
|
|
inline |
Clears all formatting flags.
This clears any bitfield values previously set from the IO::Flags enum.
◆ GetFlags()
| int Bond::OutputStreamAdaptor::GetFlags |
( |
| ) |
const |
|
inline |
Returns the current formatting flags.
The flags are bitfields defined by the IO::Flags enum.
◆ GetPrecision()
| int Bond::OutputStreamAdaptor::GetPrecision |
( |
| ) |
const |
|
inline |
Returns the current floating-point precision.
◆ GetStream()
| OutputStream * Bond::OutputStreamAdaptor::GetStream |
( |
| ) |
const |
|
inline |
◆ GetWidth()
| int Bond::OutputStreamAdaptor::GetWidth |
( |
| ) |
const |
|
inline |
Returns the current field width.
◆ Print() [1/8]
| void Bond::OutputStreamAdaptor::Print |
( |
bool | value | ) |
|
Prints a boolean value to the wrapped OutputStream.
- Parameters
-
◆ Print() [2/8]
| void Bond::OutputStreamAdaptor::Print |
( |
char | value | ) |
|
Prints a character value to the wrapped OutputStream.
- Parameters
-
◆ Print() [3/8]
| void Bond::OutputStreamAdaptor::Print |
( |
const char * | str | ) |
|
Prints a null-terminated string to the wrapped OutputStream.
- Parameters
-
◆ Print() [4/8]
| void Bond::OutputStreamAdaptor::Print |
( |
double | value | ) |
|
Prints a floating-point value to the wrapped OutputStream.
- Parameters
-
◆ Print() [5/8]
| void Bond::OutputStreamAdaptor::Print |
( |
int32_t | value | ) |
|
Prints a signed 32-bit integer value to the wrapped OutputStream.
- Parameters
-
◆ Print() [6/8]
| void Bond::OutputStreamAdaptor::Print |
( |
int64_t | value | ) |
|
Prints a signed 64-bit integer value to the wrapped OutputStream.
- Parameters
-
◆ Print() [7/8]
| void Bond::OutputStreamAdaptor::Print |
( |
uint32_t | value | ) |
|
Prints an unsigned 32-bit integer value to the wrapped OutputStream.
- Parameters
-
◆ Print() [8/8]
| void Bond::OutputStreamAdaptor::Print |
( |
uint64_t | value | ) |
|
Prints an unsigned 64-bit integer value to the wrapped OutputStream.
- Parameters
-
◆ SetFlags()
| void Bond::OutputStreamAdaptor::SetFlags |
( |
int | flags | ) |
|
|
inline |
Sets the specified formatting flags.
The flags are bitfields defined by the IO::Flags enum.
- Parameters
-
◆ SetPrecision()
| void Bond::OutputStreamAdaptor::SetPrecision |
( |
int | precision | ) |
|
|
inline |
Sets the floating-point precision.
- Parameters
-
| precision | The precision to set. |
◆ SetWidth()
| void Bond::OutputStreamAdaptor::SetWidth |
( |
int | width | ) |
|
|
inline |
Sets the field width.
- Parameters
-
◆ UnsetFlags()
| void Bond::OutputStreamAdaptor::UnsetFlags |
( |
int | flags | ) |
|
|
inline |
Unsets the specified formatting flags.
The flags are bitfields defined by the IO::Flags enum.
- Parameters
-
◆ DEFAULT_PRECISION
| const int Bond::OutputStreamAdaptor::DEFAULT_PRECISION = 6 |
|
static |
The documentation for this class was generated from the following file:
- include/bond/io/outputstreamadaptor.h