NetBurner 3.5.6
PDF Version
config_notify.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5#ifndef CONFIG_NOTIFY_H
6#define CONFIG_NOTIFY_H
7
8#include <buffers.h>
9#include <nbstring.h>
10#include <string.h>
11#include <utils.h>
12#include <config_obj.h>
13
14
15class ConfigNotificationObject
16{
17 int mask_index;
18static void ClrBits(config_leaf *p, void *pextra);
19static void SetBits(config_leaf *p, void *pextra);
20
21public:
22 ConfigNotificationObject();
23 ~ConfigNotificationObject();
24 virtual void Notify()=0;
25 void RegisterNotification(config_leaf & leaf);
26static void NotifyByMask(notify_list & nl);
27};
28
29
30typedef void(notify_callback)();
31
32
33class ConfigNotificationCallBack: public ConfigNotificationObject
34{
35 notify_callback * pFunc;
36inline virtual void Notify(){ if(pFunc) pFunc(); };
37
38 public:
39 ConfigNotificationCallBack( notify_callback * pCallBack){pFunc=pCallBack; };
40};
41
42
43
44
45
46
47#endif
48
49
NetBurner Buffers API.
Configuration object header file.
NetBurner String Class.
NetBurner Utilities API.