Rudiments
dom.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_DOM_H
5#define RUDIMENTS_DOM_H
6
7#include <rudiments/private/domincludes.h>
8
10class RUDIMENTS_DLLSPEC dom : public collection {
11 public:
12
14 dom();
15
32 dom(bool stringcacheenabled);
33
35 virtual ~dom();
36
38 virtual const char *getType();
39
41 virtual bool parse(input *in)=0;
42
44 virtual bool parseFile(const char *filename)=0;
45
47 virtual bool parseString(const char *string)=0;
48
50 virtual domnode *getRootNode();
51
53 virtual domnode *getNullNode();
54
57 virtual void createRootNode();
58
61 virtual ssize_t writeFile(const char *filename,
62 mode_t perms);
63
70 virtual ssize_t writeFile(const char *filename,
71 mode_t perms,
72 bool indent);
73
76 virtual ssize_t write();
77
84 virtual ssize_t write(bool indent);
85
87 virtual ssize_t write(output *out);
88
94 virtual ssize_t write(output *out, bool indent);
95
98 virtual ssize_t writeXml();
99
106 virtual ssize_t writeXml(bool indent);
107
109 virtual ssize_t writeXml(output *out);
110
116 virtual ssize_t writeXml(output *out, bool indent);
117
121
122 #include <rudiments/private/dom.h>
123};
124
125#endif
Definition collection.h:11
Definition dom.h:10
virtual ssize_t write(bool indent)
bool getStringCacheEnabled()
dom(bool stringcacheenabled)
virtual bool parseString(const char *string)=0
virtual ssize_t writeXml(bool indent)
virtual ssize_t write(output *out)
virtual domnode * getNullNode()
virtual bool parse(input *in)=0
virtual ssize_t writeFile(const char *filename, mode_t perms, bool indent)
virtual ssize_t write()
virtual ssize_t writeXml(output *out)
virtual ssize_t writeXml(output *out, bool indent)
virtual bool parseFile(const char *filename)=0
virtual domnode * getRootNode()
virtual const char * getType()
virtual ~dom()
virtual ssize_t writeXml()
virtual ssize_t write(output *out, bool indent)
virtual void createRootNode()
virtual ssize_t writeFile(const char *filename, mode_t perms)
Definition domnode.h:122
Definition input.h:11
Definition output.h:11