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

format_paragraph Class Reference

Formats string as a paragraph within left and right column. More...

#include <format_paragraph.h>

List of all members.

Public Member Functions

 format_paragraph (const char *str, int left_col=0, int right_col=78, bool indent_first_line=true)

Public Attributes

std::string m_text
int m_left_col
int m_right_col
bool m_indent_first_line

Friends

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


Detailed Description

Formats string as a paragraph within left and right column.

Leftmost column is 0.

First line may be started at current position by setting indent_first_line to false.

Definition at line 16 of file format_paragraph.h.


Constructor & Destructor Documentation

format_paragraph::format_paragraph const char *  str,
int  left_col = 0,
int  right_col = 78,
bool  indent_first_line = true
 

Definition at line 8 of file format_paragraph.cpp.

References m_indent_first_line, m_left_col, m_right_col, 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 format_paragraph fp
[friend]
 

Definition at line 20 of file format_paragraph.cpp.


Member Data Documentation

bool format_paragraph::m_indent_first_line
 

Definition at line 24 of file format_paragraph.h.

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

int format_paragraph::m_left_col
 

Definition at line 22 of file format_paragraph.h.

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

int format_paragraph::m_right_col
 

Definition at line 23 of file format_paragraph.h.

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

std::string format_paragraph::m_text
 

Definition at line 21 of file format_paragraph.h.

Referenced by format_paragraph(), 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