ADTF  3.18.4
html.h
Go to the documentation of this file.
1 
7 #ifndef HTML_H
8 #define HTML_H
9 
10 namespace A_UTILS_NS
11 {
12 
17 {
18  public:
20 
21 
22 
23 
30  tResult ToHTML(const cString& strInput, cString& strOutputHTML);
31 
38  tResult FromHTML(const cString& strInputHTML, cString& strOutput);
39 
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
this class provides conversion methods between plain text strings and HTML strings
Definition: html.h:17
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 adtf::util or adtf_util.
Definition: d_ptr.h:11