Rudiments
dom.h
1 // Copyright (c) 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 
10 class RUDIMENTS_DLLSPEC dom {
11  public:
12 
14  dom();
15 
32  dom(bool stringcacheenabled);
33 
35  virtual ~dom();
36 
38  virtual bool parseFile(const char *filename)=0;
39 
41  virtual bool parseString(const char *string)=0;
42 
44  virtual domnode *getRootNode() const;
45 
47  virtual domnode *getNullNode() const;
48 
51  virtual void createRootNode();
52 
55  virtual bool writeFile(const char *filename,
56  mode_t perms) const;
57 
59  virtual bool write(output *out) const;
60 
66  virtual bool write(output *out, bool indent) const;
67 
70  bool stringCacheEnabled();
71 
72  #include <rudiments/private/dom.h>
73 };
74 
75 #endif
Definition: dom.h:10
Definition: domnode.h:122
Definition: output.h:9