FONTAINE
1.0
|
#include <MLR.h>
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 |
MLR::MLR | ( | ) |
References _indentationString, and _rootTag.
virtual MLR::~MLR | ( | ) | [inline, virtual] |
void MLR::_end | ( | const std::string & | key | ) | [protected] |
References _stack, and MLRItem::getKey().
Referenced by XMLR::end(), JSONR::end(), TEXTR::end(), XHTMLR::end(), FXHTMLR::end(), JSONR::endList(), XHTMLR::endList(), and FXHTMLR::endList().
unsigned MLR::_getNumberOfChildren | ( | void | ) | [protected] |
References _stack, and MLRItem::getNumberOfChildren().
Referenced by JSONR::addKeyValuePair(), JSONR::addKeyValuePairToList(), JSONR::start(), and JSONR::startList().
void MLR::_incrementChildren | ( | void | ) | [protected] |
References _stack, and MLRItem::incrementChildren().
Referenced by JSONR::addKeyValuePair(), JSONR::addKeyValuePairToList(), and JSONR::end().
void MLR::_indent | ( | void | ) | [protected] |
References _indentationString, _ss, and _stack.
Referenced by XMLR::addKeyValuePair(), JSONR::addKeyValuePair(), TEXTR::addKeyValuePair(), XHTMLR::addKeyValuePair(), FXHTMLR::addKeyValuePair(), JSONR::addKeyValuePairToList(), TEXTR::addKeyValuePairToList(), XHTMLR::addKeyValuePairToList(), FXHTMLR::addKeyValuePairToList(), XMLR::end(), JSONR::end(), TEXTR::end(), XHTMLR::end(), FXHTMLR::end(), JSONR::endList(), XHTMLR::endList(), FXHTMLR::endList(), XMLR::start(), JSONR::start(), TEXTR::start(), XHTMLR::start(), FXHTMLR::start(), JSONR::startList(), XHTMLR::startList(), and FXHTMLR::startList().
bool MLR::_isAListContainer | ( | void | ) | [protected] |
References _stack, and MLRItem::isAListContainer().
Referenced by XHTMLR::end(), FXHTMLR::end(), JSONR::start(), XHTMLR::start(), and FXHTMLR::start().
void MLR::_setAsListContainer | ( | void | ) | [protected] |
References _stack, and MLRItem::setAsListContainer().
Referenced by JSONR::startList(), XHTMLR::startList(), and FXHTMLR::startList().
void MLR::_start | ( | const std::string & | key | ) | [protected] |
References _stack.
Referenced by XMLR::start(), JSONR::start(), TEXTR::start(), XHTMLR::start(), FXHTMLR::start(), JSONR::startList(), XHTMLR::startList(), and FXHTMLR::startList().
virtual void MLR::addKeyValuePair | ( | const std::string & | key, |
const std::string & | value | ||
) | [pure virtual] |
virtual void MLR::addKeyValuePair | ( | const char * | key, |
const char * | value | ||
) | [pure virtual] |
virtual void MLR::addKeyValuePairToList | ( | const std::string & | key, |
const std::string & | value | ||
) | [pure virtual] |
virtual void MLR::addKeyValuePairToList | ( | const char * | key, |
const char * | value | ||
) | [pure virtual] |
virtual void MLR::end | ( | const std::string & | key | ) | [pure virtual] |
virtual void MLR::end | ( | const char * | key | ) | [pure virtual] |
virtual void MLR::endList | ( | const std::string & | key | ) | [pure virtual] |
virtual void MLR::endList | ( | const char * | key | ) | [pure virtual] |
virtual void MLR::endRoot | ( | void | ) | [pure virtual] |
std::string MLR::getReport | ( | ) | const [virtual] |
void MLR::setIndentationString | ( | const std::string & | indent | ) |
References _indentationString.
void MLR::setRootTag | ( | const std::string & | tag | ) |
References _rootTag.
Referenced by setRootTag().
void MLR::setRootTag | ( | const char * | tag | ) |
References setRootTag().
virtual void MLR::start | ( | const std::string & | key | ) | [pure virtual] |
virtual void MLR::start | ( | const char * | key | ) | [pure virtual] |
virtual void MLR::startList | ( | const std::string & | key | ) | [pure virtual] |
virtual void MLR::startList | ( | const char * | key | ) | [pure virtual] |
virtual void MLR::startRoot | ( | void | ) | [pure virtual] |
std::string MLR::_indentationString [protected] |
Referenced by _indent(), JSONR::JSONR(), MLR(), setIndentationString(), and TEXTR::TEXTR().
MLRItem* MLR::_item [private] |
std::string MLR::_rootTag [protected] |
Referenced by XMLR::endRoot(), MLR(), setRootTag(), XMLR::startRoot(), XHTMLR::startRoot(), and FXHTMLR::startRoot().
std::ostringstream MLR::_ss [protected] |
Referenced by _indent(), XMLR::addKeyValuePair(), JSONR::addKeyValuePair(), TEXTR::addKeyValuePair(), XHTMLR::addKeyValuePair(), FXHTMLR::addKeyValuePair(), JSONR::addKeyValuePairToList(), TEXTR::addKeyValuePairToList(), XHTMLR::addKeyValuePairToList(), FXHTMLR::addKeyValuePairToList(), XMLR::end(), JSONR::end(), TEXTR::end(), XHTMLR::end(), FXHTMLR::end(), JSONR::endList(), XHTMLR::endList(), FXHTMLR::endList(), XMLR::endRoot(), JSONR::endRoot(), TEXTR::endRoot(), XHTMLR::endRoot(), FXHTMLR::endRoot(), getReport(), XMLR::start(), JSONR::start(), TEXTR::start(), XHTMLR::start(), FXHTMLR::start(), JSONR::startList(), XHTMLR::startList(), FXHTMLR::startList(), XMLR::startRoot(), JSONR::startRoot(), TEXTR::startRoot(), XHTMLR::startRoot(), and FXHTMLR::startRoot().
std::stack<MLRItem *> MLR::_stack [protected] |
Referenced by _end(), _getNumberOfChildren(), _incrementChildren(), _indent(), _isAListContainer(), _setAsListContainer(), and _start().