Rudiments

inidom.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_INIDOM_H
5 #define RUDIMENTS_INIDOM_H
6
7 #include <rudiments/private/inidomincludes.h>
8
10 class RUDIMENTS_DLLSPEC inidom : public inisax, public dom {
11 public:
12
14 inidom();
15
32 inidom(bool stringcacheenabled);
33
35 virtual ~inidom();
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
54 virtual bool whitespaceStart();
55
58 virtual bool whitespace(const char *w);
59
62 virtual bool whitespaceEnd();
63
66 virtual bool semicolonCommentStart();
67
69 virtual bool semicolonComment(const char *c);
70
73 virtual bool semicolonCommentEnd();
74
77 virtual bool poundCommentStart();
78
80 virtual bool poundComment(const char *c);
81
84 virtual bool poundCommentEnd();
85
87 virtual bool sectionStart();
88
90 virtual bool section(const char *s);
91
93 virtual bool sectionEnd();
94
96 virtual bool keyStart();
97
99 virtual bool key(const char *k);
100
102 virtual bool keyEnd();
103
105 virtual bool valueStart();
106
108 virtual bool value(const char *v);
109
111 virtual bool valueEnd();
112
113 #include <rudiments/private/inidom.h>
114 };
115
116 #endif
dom
Definition: dom.h:10
inidom
Definition: inidom.h:10
inidom::createRootNode
void createRootNode()
inidom::poundComment
virtual bool poundComment(const char *c)
inidom::value
virtual bool value(const char *v)
inidom::valueEnd
virtual bool valueEnd()
inidom::key
virtual bool key(const char *k)
inidom::poundCommentStart
virtual bool poundCommentStart()
inidom::section
virtual bool section(const char *s)
inidom::keyEnd
virtual bool keyEnd()
inidom::sectionEnd
virtual bool sectionEnd()
inidom::semicolonCommentStart
virtual bool semicolonCommentStart()
inidom::write
virtual bool write(output *out) const
inidom::inidom
inidom()
inidom::parseFile
bool parseFile(const char *filename)
inidom::parseString
bool parseString(const char *string)
inidom::whitespaceStart
virtual bool whitespaceStart()
inidom::valueStart
virtual bool valueStart()
inidom::keyStart
virtual bool keyStart()
inidom::whitespace
virtual bool whitespace(const char *w)
inidom::inidom
inidom(bool stringcacheenabled)
inidom::whitespaceEnd
virtual bool whitespaceEnd()
inidom::poundCommentEnd
virtual bool poundCommentEnd()
inidom::semicolonCommentEnd
virtual bool semicolonCommentEnd()
inidom::semicolonComment
virtual bool semicolonComment(const char *c)
inidom::sectionStart
virtual bool sectionStart()
inidom::~inidom
virtual ~inidom()
inisax
Definition: inisax.h:12
output
Definition: output.h:9