Rudiments: /home/dmuse/src/rudiments/include/rudiments/private/xmldomnode.h Source File

Rudiments

- Main Page
- Classes

xmldomnode.h
1 // Copyright (c) 2002 David Muse
2 // See the COPYING file for more information.
3
4 friend class codetree;
5 friend class xmldomevents;
6 private:
7 void init(xmldomnode *nullnode);
8 xmldomnode *getNode(xmldomnode *first,
9 uint64_t position,
10 const char *ns,
11 const char *name,
12 bool ignorecase,
13 uint64_t count) const;
14 xmldomnode *getAttribute(
15 const char *name,
16 bool ignorecase) const;
17 xmldomnode *getFirstChild(
18 const char *ns,
19 const char *name,
20 bool ignorecase) const;
21 xmldomnode *getFirstChild(
22 const char *ns,
23 const char *name,
24 const char *attributename,
25 const char *attributevalue,
26 bool ignorecase) const;
27 xmldomnode *getFirstTagChild(
28 const char *ns,
29 const char *name,
30 bool ignorecase) const;
31 xmldomnode *getFirstTagChild(
32 const char *ns,
33 const char *name,
34 const char *attributename,
35 const char *attributevalue,
36 bool ignorecase) const;
37 xmldomnode *getPreviousTagSibling(
38 const char *ns,
39 const char *name,
40 bool ignorecase) const;
41 xmldomnode *getPreviousTagSibling(
42 const char *ns,
43 const char *name,
44 const char *attributename,
45 const char *attributevalue,
46 bool ignorecase) const;
47 xmldomnode *getNextTagSibling(
48 const char *ns,
49 const char *name,
50 bool ignorecase) const;
51 xmldomnode *getNextTagSibling(
52 const char *ns,
53 const char *name,
54 const char *attributename,
55 const char *attributevalue,
56 bool ignorecase) const;
57 xmldomnode *getFirstTagDescendent(
58 const char *ns,
59 const char *name,
60 bool ignorecase) const;
61 xmldomnode *getFirstTagDescendent(
62 const char *ns,
63 const char *name,
64 const char *attributename,
65 const char *attributevalue,
66 bool ignorecase) const;
67 bool insertNode(xmldomnode *node,
68 uint64_t position,
69 xmldomnodetype type,
70 xmldomnode **first,
71 xmldomnode **last,
72 uint64_t *count);
73 bool deleteFirstChild(
74 const char *ns,
75 const char *name,
76 bool ignorecase);
77 bool deleteChildren(
78 const char *ns,
79 const char *name,
80 bool ignorecase);
81 bool deleteChildren(
82 const char *ns,
83 const char *name,
84 const char *attributename,
85 const char *attributevalue,
86 bool ignorecase);
87 bool deleteDescendents(
88 const char *ns,
89 const char *name,
90 bool ignorecase);
91 bool deleteDescendents(
92 const char *ns,
93 const char *name,
94 const char *attributename,
95 const char *attributevalue,
96 bool ignorecase);
97 bool unwrapFirstChild(
98 const char *ns,
99 const char *name,
100 bool ignorecase);
101 bool unwrapChildren(
102 const char *ns,
103 const char *name,
104 bool ignorecase);
105 bool unwrapDescendents(
106 const char *ns,
107 const char *name,
108 bool ignorecase);
109 bool renameFirstChild(
110 const char *oldns,
111 const char *oldname,
112 const char *newns,
113 const char *newname,
114 bool ignorecase);
115 bool renameChildren(
116 const char *oldns,
117 const char *oldname,
118 const char *newns,
119 const char *newname,
120 bool ignorecase);
121 bool renameDescendents(
122 const char *oldns,
123 const char *oldname,
124 const char *newns,
125 const char *newname,
126 bool ignorecase);
127 bool deleteNode(xmldomnode *node,
128 uint64_t position,
129 const char *name,
130 xmldomnode **first,
131 xmldomnode **last,
132 uint64_t *count);
133 xmldomnode *unlinkNode(xmldomnode *node,
134 uint64_t position,
135 const char *name,
136 xmldomnode **first,
137 xmldomnode **last,
138 uint64_t *count);
139 void xml(stringbuffer *strb,
140 filedescriptor *fd,
141 bool indent,
142 uint16_t *indentlevel) const;
143 void append(stringbuffer *strb,
144 filedescriptor *fd,
145 const char *str) const;
146 void append(stringbuffer *strb,
147 filedescriptor *fd,
148 const char *str,
149 size_t len) const;
150 void append(stringbuffer *strb,
151 filedescriptor *fd,
152 char ch) const;
153 void append(stringbuffer *strb,
154 filedescriptor *fd,
155 uint16_t ch) const;
156 void safeAppend(stringbuffer *strb,
157 filedescriptor *fd,
158 const char *str) const;
159 bool match(xmldomnode *node,
160 const char *ns,
161 const char *name,
162 bool ignorecase) const;
163 bool match(xmldomnode *node,
164 const char *ns,
165 const char * const *set) const;
166
167 void setPrivateData(void *privatedata);
168 void *getPrivateData();
169
170 xmldomnode(const xmldomnode &x);
171 xmldomnode &operator=(const xmldomnode &x);
172
173 xmldomnodeprivate *pvt;
xmldomnode
Definition: xmldomnode.h:123
stringbuffer
Definition: stringbuffer.h:22
xmldomevents
Definition: xmldomevents.h:16
codetree
Definition: codetree.h:329
filedescriptor
Definition: filedescriptor.h:14