Public Member Functions | Private Member Functions | Private Attributes | List of all members
cheprep::IndentPrintWriter Class Reference

#include "/cvmfs/"

Public Member Functions

 IndentPrintWriter (std::ostream *out, int level=0)
virtual ~IndentPrintWriter ()
void close ()
IndentPrintWriteroperator<< (const std::string &s)
IndentPrintWriteroperator<< (std::ostream &(*pf)(std::ostream &))
void println (const std::string &s)
void print (const std::string &s)
void println ()
void indent ()
void outdent ()
int getIndent () const
void setIndent (const int level)
std::string getIndentString () const
void setIndentString (const std::string &indentString)

Private Member Functions

void doIndent ()

Private Attributes

std::ostream * out
bool closed
int indentLevel
bool indented
std::string indentString

Detailed Description

Definition at line 22 of file IndentPrintWriter.h.

Constructor & Destructor Documentation

cheprep::IndentPrintWriter::IndentPrintWriter ( std::ostream *  out,
int  level = 0 
virtual cheprep::IndentPrintWriter::~IndentPrintWriter ( )

Member Function Documentation

void cheprep::IndentPrintWriter::close ( )
void cheprep::IndentPrintWriter::doIndent ( )
int cheprep::IndentPrintWriter::getIndent ( ) const
std::string cheprep::IndentPrintWriter::getIndentString ( ) const
void cheprep::IndentPrintWriter::indent ( )
IndentPrintWriter& cheprep::IndentPrintWriter::operator<< ( const std::string s)
IndentPrintWriter& cheprep::IndentPrintWriter::operator<< ( std::ostream &(*)(std::ostream &)  pf)
void cheprep::IndentPrintWriter::outdent ( )
void cheprep::IndentPrintWriter::print ( const std::string s)
void cheprep::IndentPrintWriter::println ( const std::string s)
void cheprep::IndentPrintWriter::println ( )
void cheprep::IndentPrintWriter::setIndent ( const int  level)
void cheprep::IndentPrintWriter::setIndentString ( const std::string indentString)

Member Data Documentation

bool cheprep::IndentPrintWriter::closed

Definition at line 45 of file IndentPrintWriter.h.

bool cheprep::IndentPrintWriter::indented

Definition at line 47 of file IndentPrintWriter.h.

int cheprep::IndentPrintWriter::indentLevel

Definition at line 46 of file IndentPrintWriter.h.

std::string cheprep::IndentPrintWriter::indentString

Definition at line 48 of file IndentPrintWriter.h.

std::ostream* cheprep::IndentPrintWriter::out

Definition at line 44 of file IndentPrintWriter.h.

The documentation for this class was generated from the following file: