Main Page | Class List | File List | Class Members | File Members

fit_text Class Reference

Formats string according to stream parameters output width and alignment. More...

#include <fit_text.h>

List of all members.

Public Member Functions

 fit_text (const char *str, const char *ellipsis="**")

Public Attributes

std::string m_text
std::string m_ellipsis

Friends

std::ostream & operator<< (std::ostream &, const fit_text &)


Detailed Description

Formats string according to stream parameters output width and alignment.

If string is shorter or the same length than current output width the string is aligned.

If string is longer than current output width the beginning and end of string is inserted into stream with ellipsis inserted.

Definition at line 18 of file fit_text.h.


Constructor & Destructor Documentation

fit_text::fit_text const char *  str,
const char *  ellipsis = "**"
 

Definition at line 6 of file fit_text.cpp.

References m_ellipsis, m_text, and safe_assign().

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const fit_text ft
[friend]
 

Definition at line 12 of file fit_text.cpp.


Member Data Documentation

std::string fit_text::m_ellipsis
 

Definition at line 24 of file fit_text.h.

Referenced by fit_text(), and operator<<().

std::string fit_text::m_text
 

Definition at line 23 of file fit_text.h.

Referenced by fit_text(), and operator<<().


The documentation for this class was generated from the following files:
Generated on Sun Jun 26 13:44:01 2005 for pingem by  doxygen 1.4.3