Rudiments: /home/dmuse/temp/rudiments/include/rudiments/domevents.h Source File

Rudiments

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