GenLib2::Form Class Reference

Formating output class. More...

#include <form.h>

List of all members.

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
Formscientific ()
 set floating-point output format
Formfixed ()
 fixed format
Formgeneral ()
Formuppercase ()
Formlowercase ()
Formprecision (int p)
 set precision
Formwidth (int w)
 set field width
Formfill (char c)
 set padding character
Formshowpoint ()
 show
Formnoshowpoint ()
 show
Formshowpos ()
 sign (+ or -) always be placed before a number
Formnoshowpos ()
 sign is used only for negative numbers (default)
Formleft ()
 fieldadjustment on the field boundary left adjusted (default)
Formright ()
 right adjusted
Forminternal ()
 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 &)


Detailed Description

Formating output class.

Formating floating-point numbers, integers, c-strings and STL strings.

Author:
Dirk Stallmann

The documentation for this class was generated from the following file:

Generated on Wed Aug 6 15:46:43 2008 by  doxygen 1.5.5