Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

FormatString Class Reference

output a string with a fixed length (adding necessary space or removing excess characters) :. More...

#include <VFNStreamFormat.h>

List of all members.

Public Methods

 FormatString (const string &str, const unsigned int width=5)
 ~FormatString ()
int length () const

Private Attributes

string mString
const unsigned int mWidth

Friends

ostream & operator<< (ostream &, const FormatString &)


Detailed Description

output a string with a fixed length (adding necessary space or removing excess characters) :.

os << FormatString(myString,15);


The documentation for this class was generated from the following file:
Generated on Wed Nov 14 19:48:36 2001 for ObjCryst++ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001