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

uniwatch.cc

Go to the documentation of this file.
00001 /*
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.  See uniwatch.h
00007  */
00008 #include "uniwatch.h"
00009 #include "uniconfroot.h"
00010 
00011 
00012 UniWatch::UniWatch(const UniConf &_cfg, const UniConfCallback &_cb,
00013                    bool _recurse)
00014     : cfg(_cfg), cb(_cb), recurse(_recurse)
00015 {
00016     cfg.add_callback(this, cb, recurse);
00017 }
00018 
00019 
00020 UniWatch::UniWatch(const UniConf &_cfg, bool *b, bool _recurse)
00021     : cfg(_cfg), cb(WvBoundCallback<UniConfCallback, bool *>
00022                     (&UniConfRoot::setbool_callback, b)),
00023     recurse(_recurse)
00024 {
00025     cfg.add_callback(this, cb, recurse);
00026 }
00027 
00028 
00029 UniWatch::~UniWatch()
00030 {
00031     cfg.del_callback(this, recurse);
00032 }
00033 
00034 

Generated on Wed Dec 15 15:08:10 2004 for WvStreams by  doxygen 1.3.9.1