Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

uniwatch.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  * 
00005  * A class that does add_callback when created and del_callback when
00006  * destroyed, thus making it harder to do one or the other incorrectly.
00007  * 
00008  * Because it's an object itself, it uses its own 'this' pointer as the
00009  * 'cookie', so you don't have to come up with one.
00010  */
00011 #ifndef __UNIWATCH_H
00012 #define __UNIWATCH_H
00013 
00014 #include "uniconf.h"
00015 
00016 class UniWatch
00017 {
00018     UniConf cfg;
00019     UniConfCallback cb;
00020     bool recurse;
00021     
00022 public:
00023     // standard "add_callback" version
00024     UniWatch(const UniConf &_cfg, const UniConfCallback &_cb,
00025              bool _recurse = true);
00026     
00027     // special "add_setbool" version
00028     UniWatch(const UniConf &_cfg, bool *b, bool _recurse = true);
00029     
00030     ~UniWatch();
00031     
00032     void update();
00033 };
00034 
00035 DeclareWvList(UniWatch);
00036 
00037 
00038 #endif // __UNIWATCH_H

Generated on Sat Feb 21 21:05:22 2004 for WvStreams by doxygen 1.3.5