#include <form.h>
Public Member Functions | |
Form (int p=6) | |
Bound_form_num | operator() (double d) const |
Bound_form_num | operator() (float f) const |
Bound_form_num | operator() (int i) const |
Bound_form_num | operator() (unsigned int i) const |
Bound_form_num | operator() (long unsigned int i) const |
Bound_form_str | operator() (const char *p) const |
Bound_form_str | operator() (const string &s) const |
Form & | scientific () |
set floating-point output format | |
Form & | fixed () |
fixed format | |
Form & | general () |
Form & | uppercase () |
Form & | lowercase () |
Form & | precision (int p) |
set precision | |
Form & | width (int w) |
set field width | |
Form & | fill (char c) |
set padding character | |
Form & | showpoint () |
show | |
Form & | noshowpoint () |
show | |
Form & | showpos () |
sign (+ or -) always be placed before a number | |
Form & | noshowpos () |
sign is used only for negative numbers (default) | |
Form & | left () |
fieldadjustment on the field boundary left adjusted (default) | |
Form & | right () |
right adjusted | |
Form & | internal () |
internal | |
Private Attributes | |
int | prc |
precision | |
int | wdt |
field width | |
ios::fmtflags | fmt |
format: general, scientific or fixed | |
char | chr |
fill character | |
Friends | |
ostream & | operator<< (ostream &, const Bound_form_num &) |
ostream & | operator<< (ostream &, const Bound_form_str &) |
Formating floating-point numbers, integers, c-strings and STL strings.