FONTAINE 1.0
|
00001 // 00002 // The Fontaine Font Analysis Project 00003 // 00004 // Copyright (c) 2009 by Edward H. Trager 00005 // All Rights Reserved 00006 // 00007 // Released under the GNU GPL version 2.0 or later. 00008 // 00009 00010 00011 // 00012 // JSON.h -- JSON Report 00013 // 00014 00015 #ifndef JSON_INCLUDED 00016 #define JSON_INCLUDED 00017 00018 #include "MLR.h" 00019 00020 class JSONR : public MLR { 00021 00022 public: 00023 00024 JSONR(); 00025 00026 void startRoot(void); 00027 void endRoot(void); 00028 00029 void startList(const std::string &key); 00030 void addKeyValuePairToList(const std::string &key,const std::string &value); 00031 void endList(const std::string &key); 00032 00033 void start(const std::string &key); 00034 void addKeyValuePair(const std::string &key,const std::string &value); 00035 void end(const std::string &key); 00036 00037 void startList(const char *key); 00038 void addKeyValuePairToList(const char *key,const char *value); 00039 void endList(const char *key); 00040 00041 void start(const char *key); 00042 void addKeyValuePair(const char *key,const char *value); 00043 void end(const char *key); 00044 00045 }; 00046 00047 #endif 00048