FONTAINE  1.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
MLR Class Referenceabstract

#include <MLR.h>

Inheritance diagram for MLR:
FXHTMLR JSONR TEXTR XHTMLR XMLR

Public Member Functions

 MLR ()
 
virtual ~MLR ()
 
void setRootTag (const std::string &tag)
 
void setRootTag (const char *tag)
 
virtual void startRoot (void)=0
 
virtual void endRoot (void)=0
 
virtual void startList (const std::string &key)=0
 
virtual void addKeyValuePairToList (const std::string &key, const std::string &value)=0
 
virtual void endList (const std::string &key)=0
 
virtual void start (const std::string &key)=0
 
virtual void addKeyValuePair (const std::string &key, const std::string &value)=0
 
virtual void end (const std::string &key)=0
 
virtual void startList (const char *key)=0
 
virtual void addKeyValuePairToList (const char *key, const char *value)=0
 
virtual void endList (const char *key)=0
 
virtual void start (const char *key)=0
 
virtual void addKeyValuePair (const char *key, const char *value)=0
 
virtual void end (const char *key)=0
 
void setIndentationString (const std::string &indent)
 
virtual std::string getReport () const
 

Protected Member Functions

void _start (const std::string &key)
 
void _end (const std::string &key)
 
void _incrementChildren ()
 
unsigned _getNumberOfChildren ()
 
void _indent (void)
 
void _setAsListContainer (void)
 
bool _isAListContainer (void)
 

Protected Attributes

std::string _rootTag
 
std::string _indentationString
 
std::stack< MLRItem * > _stack
 
std::ostringstream _ss
 

Private Attributes

MLRItem_item
 

Constructor & Destructor Documentation

MLR::MLR ( )
virtual MLR::~MLR ( )
inlinevirtual

Member Function Documentation

void MLR::_end ( const std::string &  key)
protected
unsigned MLR::_getNumberOfChildren ( void  )
protected
void MLR::_incrementChildren ( void  )
protected
void MLR::_indent ( void  )
protected
bool MLR::_isAListContainer ( void  )
protected
void MLR::_setAsListContainer ( void  )
protected
void MLR::_start ( const std::string &  key)
protected
virtual void MLR::addKeyValuePair ( const std::string &  key,
const std::string &  value 
)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by FontFace::fillReport(), and main().

virtual void MLR::addKeyValuePair ( const char *  key,
const char *  value 
)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

virtual void MLR::addKeyValuePairToList ( const std::string &  key,
const std::string &  value 
)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by main().

virtual void MLR::addKeyValuePairToList ( const char *  key,
const char *  value 
)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

virtual void MLR::end ( const std::string &  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by FontFace::fillReport(), and main().

virtual void MLR::end ( const char *  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

virtual void MLR::endList ( const std::string &  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by FontFace::fillReport(), and main().

virtual void MLR::endList ( const char *  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

virtual void MLR::endRoot ( void  )
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by main().

std::string MLR::getReport ( ) const
virtual

Referenced by main().

void MLR::setIndentationString ( const std::string &  indent)
void MLR::setRootTag ( const std::string &  tag)
void MLR::setRootTag ( const char *  tag)
virtual void MLR::start ( const std::string &  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by FontFace::fillReport(), and main().

virtual void MLR::start ( const char *  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

virtual void MLR::startList ( const std::string &  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by FontFace::fillReport(), and main().

virtual void MLR::startList ( const char *  key)
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

virtual void MLR::startRoot ( void  )
pure virtual

Implemented in FXHTMLR, XHTMLR, TEXTR, JSONR, and XMLR.

Referenced by main().

Member Data Documentation

std::string MLR::_indentationString
protected

Referenced by JSONR::JSONR(), and TEXTR::TEXTR().

MLRItem* MLR::_item
private
std::string MLR::_rootTag
protected
std::ostringstream MLR::_ss
protected
std::stack<MLRItem *> MLR::_stack
protected

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