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

FormatString Class Reference

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

List of all members.

Public Member Functions

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

Public Attributes

string mString
const unsigned int mWidth


Detailed Description

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

os << FormatString(myString,15);


Constructor & Destructor Documentation

FormatString::FormatString const string &  str,
const unsigned int  width = 5
 

FormatString::~FormatString  ) 
 


Member Function Documentation

int FormatString::length  )  const
 


Member Data Documentation

string FormatString::mString
 

const unsigned int FormatString::mWidth
 


The documentation for this class was generated from the following file:
Generated on Tue Nov 14 15:03:40 2006 for ObjCryst++ by doxygen 1.3.6