Rudiments
jsondom.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_JSONDOM_H
5 #define RUDIMENTS_JSONDOM_H
6 
7 #include <rudiments/private/jsondomincludes.h>
8 
10 class RUDIMENTS_DLLSPEC jsondom : public jsonsax, public dom {
11  public:
12 
15 
32  jsondom(bool stringcacheenabled);
33 
35  virtual ~jsondom();
36 
38  bool parseFile(const char *filename);
39 
41  bool parseString(const char *string);
42 
46 
48  virtual bool write(output *out) const;
49 
50  protected:
51 
53  virtual bool objectStart();
54 
56  virtual bool memberStart();
57 
59  virtual bool memberName(const char *name);
60 
62  virtual bool valueStart();
63 
65  virtual bool stringValue(const char *value);
66 
68  virtual bool numberValue(const char *value);
69 
71  virtual bool trueValue();
72 
74  virtual bool falseValue();
75 
77  virtual bool nullValue();
78 
80  virtual bool arrayStart();
81 
83  virtual bool arrayEnd();
84 
86  virtual bool valueEnd();
87 
89  virtual bool memberEnd();
90 
92  virtual bool objectEnd();
93 
94  #include <rudiments/private/jsondom.h>
95 };
96 
97 #endif
Definition: dom.h:10
Definition: jsondom.h:10
virtual bool stringValue(const char *value)
virtual bool trueValue()
virtual bool memberStart()
virtual bool memberName(const char *name)
virtual ~jsondom()
virtual bool valueEnd()
virtual bool numberValue(const char *value)
bool parseString(const char *string)
virtual bool valueStart()
bool parseFile(const char *filename)
virtual bool falseValue()
void createRootNode()
virtual bool objectStart()
virtual bool memberEnd()
jsondom(bool stringcacheenabled)
virtual bool write(output *out) const
virtual bool arrayStart()
virtual bool nullValue()
virtual bool objectEnd()
virtual bool arrayEnd()
Definition: jsonsax.h:12
Definition: output.h:9