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 
MLR::_indent
void _indent(void)
Definition: MLR.cpp:139
JSONR::startList
void startList(const std::string &key)
Definition: JSONR.cpp:155
JSONR::startRoot
void startRoot(void)
Definition: JSONR.cpp:137
MLR
Definition: MLR.h:49
JSONR::start
void start(const std::string &key)
Definition: JSONR.cpp:29
JSONR
Definition: JSONR.h:20
MLR::_indentationString
std::string _indentationString
Definition: MLR.h:60
JSONR::endRoot
void endRoot(void)
Definition: JSONR.cpp:146
MLR::_isAListContainer
bool _isAListContainer(void)
Definition: MLR.cpp:198
JSONR::end
void end(const std::string &key)
Definition: JSONR.cpp:109
MLR.h
BasicLatinStringUtilities.h
BasicLatin::escapeASCIIDoubleQuote
std::string & escapeASCIIDoubleQuote(std::string &s)
Definition: BasicLatinStringUtilities.cpp:77
JSONR::JSONR
JSONR()
Definition: JSONR.cpp:19
MLR::_end
void _end(const std::string &key)
Definition: MLR.cpp:121
MLR::_ss
std::ostringstream _ss
Definition: MLR.h:62
MLR::_incrementChildren
void _incrementChildren()
Definition: MLR.cpp:97
MLR::_getNumberOfChildren
unsigned _getNumberOfChildren()
Definition: MLR.cpp:109
JSONR::endList
void endList(const std::string &key)
Definition: JSONR.cpp:192
MLR::_start
void _start(const std::string &key)
Definition: MLR.cpp:88
JSONR::addKeyValuePairToList
void addKeyValuePairToList(const std::string &key, const std::string &value)
Definition: JSONR.cpp:174
JSONR::addKeyValuePair
void addKeyValuePair(const std::string &key, const std::string &value)
Definition: JSONR.cpp:77
JSONR.h
MLR::_setAsListContainer
void _setAsListContainer(void)
Definition: MLR.cpp:186