ADTF
Loading...
Searching...
No Matches
html.h
Go to the documentation of this file.
1
7#ifndef HTML_H
8#define HTML_H
9
10namespace A_UTILS_NS
11{
12
16class cHTMLConverter
17{
18 public:
19 cHTMLConverter();
20
21
22
23
30 tResult ToHTML(const cString& strInput, cString& strOutputHTML);
31
38 tResult FromHTML(const cString& strInputHTML, cString& strOutput);
39
47 tResult ShowMappings(cStringList& strHTML, cStringList& strString);
48 private:
49 // local storage of the
50 //cStringMap m_oMappingToHTML;
51 //cStringMap m_oMappingToStr;
52
53 struct tMapping
54 {
55 cString strOrginal;
56 cString strHTML;
57 };
58
59 std::list<tMapping> m_oStringMapping;
60
67 tResult CreateMapping(cString strString, cString strHTML);
68
73
74};
75
76} // end namespace
77
78#endif // HTML_H
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
tResult FromHTML(const cString &strInputHTML, cString &strOutput)
will convert a given html string to a plain text one
tResult CreateMapping(cString strString, cString strHTML)
inserts the data into the string maps
tResult ToHTML(const cString &strInput, cString &strOutputHTML)
will convert a given string to string that is conform to html
tResult ShowMappings(cStringList &strHTML, cStringList &strString)
this helper method will show the user all possible mappings
tResult Initialize()
Inits the maps for conversion.
ADTF A_UTIL Namespace - Within adtf this is used as util or adtf_util.
Definition d_ptr.h:11
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Definition string.h:2785