oasys::PrettyPrintBuf Class Reference

#include <PrettyPrintBuffer.h>

List of all members.


Detailed Description

Class for generating pretty printed text.

Somewhat inefficient.

Definition at line 28 of file PrettyPrintBuffer.h.

Public Member Functions

 PrettyPrintBuf (const char *buf, int len=-1)
bool next_str (std::string *s)

Private Attributes

const char * buf_
int cur_
int len_

Static Private Attributes

static const int MAX_COL


Constructor & Destructor Documentation

oasys::PrettyPrintBuf::PrettyPrintBuf ( const char *  buf,
int  len = -1 
)

Definition at line 26 of file PrettyPrintBuffer.cc.

References len_.


Member Function Documentation

bool oasys::PrettyPrintBuf::next_str ( std::string *  s  ) 

Definition at line 37 of file PrettyPrintBuffer.cc.

References oasys::StringBuffer::append(), buf_, oasys::StringBuffer::c_str(), cur_, len_, and MAX_COL.


Member Data Documentation

const int oasys::PrettyPrintBuf::MAX_COL [static, private]

Definition at line 35 of file PrettyPrintBuffer.h.

Referenced by next_str().

const char* oasys::PrettyPrintBuf::buf_ [private]

Definition at line 37 of file PrettyPrintBuffer.h.

Referenced by next_str().

int oasys::PrettyPrintBuf::cur_ [private]

Definition at line 38 of file PrettyPrintBuffer.h.

Referenced by next_str().

int oasys::PrettyPrintBuf::len_ [private]

Definition at line 39 of file PrettyPrintBuffer.h.

Referenced by next_str(), and PrettyPrintBuf().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:57:00 2007 for DTN Reference Implementation by  doxygen 1.5.1