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