#include <muo_convert.h>
Inheritance diagram for krmuo::Converter:
Public Member Functions | |
Converter () | |
general constructor for any type of Converter | |
virtual | ~Converter () |
class-destructor | |
const string | decode (const string &pUnDecodedString) |
realize a (default) decodation (valid for xml and html) | |
const string | encode (const string &pUnEncodedString) |
realize a (default) encodation (valid for xml and html) | |
Protected Attributes | |
string::const_iterator | mUnConvertedStringIterator |
start for the next get-token-method | |
string::const_iterator | mUnConvertedStringEnd |
start for the next get-token-method | |
string | mUnConvertedToken |
the last unconverted token | |
string | mConvertedToken |
the last converted token | |
string | mConvertedString |
the result of the conversion | |
char | mUtf8Sign [20] |
buffer for generating an utfString | |
string | mUtf8String |
... and the corresponding string itself | |
krmuo::CodeTokenMap * | mTokenMap |
pointer the valid codeTokenMap |
Converter are XmlConverter, UrlConverter, HtmlConverter
Note: Html- and xml-encodation uses the same tag-structure namely &...; Therefore the only difference between an thml- and and xml-converter concernes the set of tokens being fixed in the codeTokenMap. => The default-implementation of a converter is valid vor an xml-converter and an html-converter. The difference is realized by setting the pointer mTokenMap to the correct codeTokenMap - the htmlCodeTokenMap or the xmlCodeTokenMap - which are made as member by the constructors of the real converters
Definition at line 65 of file muo_convert.h.
|
general constructor for any type of Converter intializes all member variables Definition at line 48 of file muo_convert.cc. References mUtf8Sign. |
|
realize a (default) decodation (valid for xml and html)
Reimplemented in krmuo::UrlConverter. Definition at line 80 of file muo_convert.cc. References krmuo::CodeTokenMap::decodeToken(), krmuo::CodeTokenMap::isDecodableToken(), mConvertedString, mTokenMap, mUnConvertedStringEnd, mUnConvertedStringIterator, and mUnConvertedToken. |
|
realize a (default) encodation (valid for xml and html)
Reimplemented in krmuo::UrlConverter. Definition at line 109 of file muo_convert.cc. References krmuo::CodeTokenMap::encodeSign(), krmuo::CodeTokenMap::isEncodableSign(), mConvertedString, mTokenMap, mUnConvertedStringIterator, and mUtf8String. Referenced by mrprj::Task::printTaskAsHtmlSurveyMember(), mrprj::Task::printTaskAsLeafYankTodoMember(), mrprj::Task::printTaskAsMrPrjXmlFileMember(), mrprj::Task::printTaskAsTreeYankTodoMember(), and mrprj::TaskField::printTaskFieldAsMrPrjXmlFile(). |