Rudiments: /home/dmuse/temp/rudiments/include/rudiments/jsondom.h Source File

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
14 jsondom();
15
32 jsondom(bool stringcacheenabled);
33
35 virtual ~jsondom();
36
38 bool parseFile(const char *filename);
39
41 bool parseString(const char *string);
42
45 void createRootNode();
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
dom
Definition: dom.h:10
jsondom
Definition: jsondom.h:10
jsondom::jsondom
jsondom()
jsondom::stringValue
virtual bool stringValue(const char *value)
jsondom::trueValue
virtual bool trueValue()
jsondom::memberStart
virtual bool memberStart()
jsondom::memberName
virtual bool memberName(const char *name)
jsondom::~jsondom
virtual ~jsondom()
jsondom::valueEnd
virtual bool valueEnd()
jsondom::numberValue
virtual bool numberValue(const char *value)
jsondom::parseString
bool parseString(const char *string)
jsondom::valueStart
virtual bool valueStart()
jsondom::parseFile
bool parseFile(const char *filename)
jsondom::falseValue
virtual bool falseValue()
jsondom::createRootNode
void createRootNode()
jsondom::objectStart
virtual bool objectStart()
jsondom::memberEnd
virtual bool memberEnd()
jsondom::jsondom
jsondom(bool stringcacheenabled)
jsondom::write
virtual bool write(output *out) const
jsondom::arrayStart
virtual bool arrayStart()
jsondom::nullValue
virtual bool nullValue()
jsondom::objectEnd
virtual bool objectEnd()
jsondom::arrayEnd
virtual bool arrayEnd()
jsonsax
Definition: jsonsax.h:12
output
Definition: output.h:9