FONTAINE  1.0
JSONR.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 //
12 // JSON.h -- JSON Report
13 //
14 
15 #ifndef JSON_INCLUDED
16 #define JSON_INCLUDED
17 
18 #include "MLR.h"
19 
20 class JSONR : public MLR {
21 
22 public:
23 
24  JSONR();
25 
26  void startRoot(void);
27  void endRoot(void);
28 
29  void startList(const std::string &key);
30  void addKeyValuePairToList(const std::string &key,const std::string &value);
31  void endList(const std::string &key);
32 
33  void start(const std::string &key);
34  void addKeyValuePair(const std::string &key,const std::string &value);
35  void end(const std::string &key);
36 
37  void startList(const char *key);
38  void addKeyValuePairToList(const char *key,const char *value);
39  void endList(const char *key);
40 
41  void start(const char *key);
42  void addKeyValuePair(const char *key,const char *value);
43  void end(const char *key);
44 
45 };
46 
47 #endif
48