|
dodo
0.0.1
A C++ library to create containerized Linux services
|
Helper class to write strings in stream format, eg. More...
#include <puts.hpp>

Data Structures | |
| struct | dec |
| Put the stream in decimal mode. More... | |
| struct | endl |
| Mimics std::endl. More... | |
| struct | fixed |
| Put the stream in floating point fixed-format mode. More... | |
| struct | hex |
| Put the stream in hexadecimal mode. More... | |
| struct | oct |
| Put the stream in octal mode. More... | |
| struct | scientific |
| Put the stream in floating point scientific-format mode. More... | |
| struct | setprecision |
| Set the precision for floating point fixed format. More... | |
| struct | setw |
| Set the width of things to w characters. More... | |
Public Member Functions | |
| Puts () | |
| Constructor inits to fixed format for double with precision 3. More... | |
| operator std::string () const | |
| Implicit Puts conversion to string for the compiler. More... | |
| const Puts & | operator<< (char c) const |
| Append a char. More... | |
| const Puts & | operator<< (const char *s) const |
| Append a C string. More... | |
| const Puts & | operator<< (const std::string &s) const |
| Append a STL string. More... | |
| const Puts & | operator<< (dec) const |
| Applies std::dec. More... | |
| const Puts & | operator<< (double d) const |
| Append a double. More... | |
| const Puts & | operator<< (fixed) const |
| Applies std::fixed. More... | |
| const Puts & | operator<< (float f) const |
| Append a float. More... | |
| const Puts & | operator<< (hex) const |
| Applies std::hex. More... | |
| const Puts & | operator<< (int i) const |
| Append an integer. More... | |
| const Puts & | operator<< (long l) const |
| Append a long. More... | |
| const Puts & | operator<< (long long l) const |
| Append a long long. More... | |
| const Puts & | operator<< (oct) const |
| Applies std::oct. More... | |
| const Puts & | operator<< (Puts::endl) const |
| Appends std::endl. More... | |
| const Puts & | operator<< (scientific) const |
| Applies std::scientific. More... | |
| const Puts & | operator<< (setprecision p) const |
| Applies std::setprecision. More... | |
| const Puts & | operator<< (setw w) const |
| Applies std::setw. More... | |
| const Puts & | operator<< (std::thread::id id) const |
| Append a std::thread::id. More... | |
| const Puts & | operator<< (unsigned int i) const |
| Append an unsigned integer. More... | |
| const Puts & | operator<< (unsigned long l) const |
| Append an unsigned long. More... | |
| const Puts & | operator<< (unsigned long long l) const |
| Append an unsigned long long. More... | |
| const Puts & | operator<< (void *p) const |
| Append a void*. More... | |
Private Attributes | |
| std::stringstream | ss_ |
| Use a stringstream internally. More... | |
Helper class to write strings in stream format, eg.
which is very convenient in, for example, throwing exceptions, where the throw_Exception macro already inserts the "Puts() <<" in the expression, so one can write
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Applies std::setprecision.
| p | The precision. |
Definition at line 324 of file puts.hpp.
References dodo::common::Puts::setprecision::p_, and ss_.
Applies std::setw.
| w | The width. |
Definition at line 314 of file puts.hpp.
References ss_, and dodo::common::Puts::setw::w_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
mutableprivate |
Use a stringstream internally.
Definition at line 333 of file puts.hpp.
Referenced by operator<<(), and Puts().