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

Rudiments

- Main Page
- Classes

xmldomevents.h
1 // Copyright (c) 2015 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_XMLDOMEVENTS_H
5 #define RUDIMENTS_XMLDOMEVENTS_H
6
7 #include <rudiments/xmldom.h>
8 #include <rudiments/private/xmldomeventsincludes.h>
9
10 class xmldomeventsprivate;
11
12 typedef xmldomnode *(*xmldomeventhandler_t)(xmldomnode *codetreenode,
13 xmldomnode *eventtreenode,
14 void *data);
15
16 class RUDIMENTS_DLLSPEC xmldomevents {
17 public:
18 xmldomevents();
19 ~xmldomevents();
20
21 bool setEvents(const char *events);
22
23 bool setEventHandler(const char *event,
24 xmldomeventhandler_t handler);
25
26 bool setData(void *data);
27
28 bool process(xmldomnode *codetreenode);
29
30 void setDebugLevel(uint8_t debuglevel);
31
32
33 static xmldomnode *ignore(xmldomnode *codetreenode,
34 xmldomnode *eventtreenode,
35 void *data);
36
37 static xmldomnode *rename(xmldomnode *codetreenode,
38 xmldomnode *eventtreenode,
39 void *data);
40
41 static xmldomnode *revalue(xmldomnode *codetreenode,
42 xmldomnode *eventtreenode,
43 void *data);
44
45 #include <rudiments/private/xmldomevents.h>
46 };
47
48 #endif
xmldomnode
Definition: xmldomnode.h:123
xmldomevents
Definition: xmldomevents.h:16
process
Definition: process.h:19