|
LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
Output formatter class, adapted from Stroustrup's book. More...
#include <Fmt.hpp>
Public Types | |
| enum | FmtAlignment { LEFT , RIGHT , INTERNAL } |
| Alignment of the text. | |
Public Member Functions | |
| Fmt (uint p=6) | |
| BoundFmt | operator() (double d) const |
| Returns the bound formatter. | |
| Fmt & | scientific (void) |
| Output in scientific format. | |
| Fmt & | fixed (void) |
| Output in fixed-point. | |
| Fmt & | general (void) |
| Output normally (i.e. general) | |
| Fmt & | precision (const uint) |
| Set the precision. | |
| Fmt & | width (const uint) |
| Set the output field width. | |
| Fmt & | fill (const char) |
| Set the fill character. | |
| Fmt & | trailingZeros (bool b=true) |
| Determines whether or not trailing zeros are shown. | |
| Fmt & | plus (bool b=true) |
| Prepend plus sign? | |
| Fmt & | left (void) |
| Align left. | |
| Fmt & | right (void) |
| Align right. | |
| Fmt & | internal (void) |
| Align "internal" (see C++ ref) | |
Friends | |
| std::ostream & | operator<< (std::ostream &, const BoundFmt &) |
| Create the output with the specified formatter. | |
Output formatter class, adapted from Stroustrup's book.
|
inlineexplicit |
Default is for precision width 6, no zeros, padding with spaces, and left aligned (and general formatting)
Returns the bound formatter.
Return the bound formatter.