FONTAINE  1.0
XHTMLR.h
Go to the documentation of this file.
1 //
2 // The Fontaine Font Analysis Project
3 //
4 // Copyright (c) 2009 by Edward H. Trager
5 // All Rights Reserved
6 //
7 // Released under the GNU GPL version 2.0 or later.
8 //
9 
10 //
11 // XHTMLR.h -- Basic XHTML Report
12 //
13 
14 #ifndef XHTMLR_INCLUDED
15 #define XHTMLR_INCLUDED
16 
17 #include "MLR.h"
18 
19 class XHTMLR : public MLR {
20 
21 protected:
22 
23  std::string _startTag;
24  std::string _keyValuePairTag;
25  std::string _startListTag;
26  std::string _listItemTag;
27 
28 public:
29 
30  XHTMLR();
31 
32  void startRoot(void);
33  void endRoot(void);
34 
35  void startList(const std::string &key);
36  void addKeyValuePairToList(const std::string &key,const std::string &value);
37  void endList(const std::string &key);
38 
39  void start(const std::string &key);
40  void addKeyValuePair(const std::string &key,const std::string &value);
41  void end(const std::string &key);
42 
43  void startList(const char *key);
44  void addKeyValuePairToList(const char *key,const char *value);
45  void endList(const char *key);
46 
47  void start(const char *key);
48  void addKeyValuePair(const char *key,const char *value);
49  void end(const char *key);
50 
51  void setStartTag(const std::string &s);
52  void setKeyValuePairTag(const std::string &s);
53  void setStartListTag(const std::string &s);
54  void setListItemTag(const std::string &s);
55  // const char * versions:
56  void setStartTag(const char *s);
57  void setKeyValuePairTag(const char *s);
58  void setStartListTag(const char *s);
59  void setListItemTag(const char *s);
60 
61 };
62 
63 #endif
64