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
52class RUDIMENTS_DLLSPEC inidom : public inisax, public dom {
53 public:
54
57
74 inidom(bool stringcacheenabled);
75
77 virtual ~inidom();
78
80 virtual const char *getType();
81
83 bool parse(input *in);
84
86 bool parseFile(const char *filename);
87
89 bool parseString(const char *string);
90
94
95 protected:
96
99 virtual bool whitespaceStart();
100
103 virtual bool whitespace(const char *w);
104
107 virtual bool whitespaceEnd();
108
111 virtual bool semicolonCommentStart();
112
114 virtual bool semicolonComment(const char *c);
115
118 virtual bool semicolonCommentEnd();
119
122 virtual bool poundCommentStart();
123
125 virtual bool poundComment(const char *c);
126
129 virtual bool poundCommentEnd();
130
132 virtual bool sectionStart();
133
135 virtual bool section(const char *s);
136
138 virtual bool sectionEnd();
139
141 virtual bool keyStart();
142
144 virtual bool key(const char *k);
145
147 virtual bool keyEnd();
148
150 virtual bool valueStart();
151
153 virtual bool value(const char *v);
154
156 virtual bool valueEnd();
157
158 #include <rudiments/private/inidom.h>
159};
160
161#endif
Definition dom.h:10
Definition inidom.h:52
void createRootNode()
virtual bool poundComment(const char *c)
virtual bool value(const char *v)
virtual bool valueEnd()
virtual bool key(const char *k)
virtual bool poundCommentStart()
bool parse(input *in)
virtual bool section(const char *s)
virtual bool keyEnd()
virtual bool sectionEnd()
virtual bool semicolonCommentStart()
bool parseFile(const char *filename)
bool parseString(const char *string)
virtual bool whitespaceStart()
virtual bool valueStart()
virtual bool keyStart()
virtual bool whitespace(const char *w)
inidom(bool stringcacheenabled)
virtual bool whitespaceEnd()
virtual bool poundCommentEnd()
virtual bool semicolonCommentEnd()
virtual bool semicolonComment(const char *c)
virtual const char * getType()
virtual bool sectionStart()
virtual ~inidom()
Definition inisax.h:12
Definition input.h:11