nIConfItemWatcher Class Reference

interface for objects watching over the change of network configuration items More...

#include <nConfig.h>

Inheritance diagram for nIConfItemWatcher:

Inheritance graph
[legend]
Collaboration diagram for nIConfItemWatcher:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 nIConfItemWatcher (nConfItemBase &item)
 constructor
void Change (bool nonDefault)
 called on configuration item changes
bool Writable () const
 returns whether the item should be writable

Protected Member Functions

virtual ~nIConfItemWatcher ()=0
 destructor

Protected Attributes

nConfItemBasewatched_
 the watched item

Private Member Functions

virtual void OnChange (bool nonDefault)=0
 called on configuration item changes
virtual bool DoWritable () const =0
 returns whether the item should be writable
 nIConfItemWatcher ()
 constructor
 nIConfItemWatcher (nIConfItemWatcher const &)
 copy constructor
nIConfItemWatcheroperator= (nIConfItemWatcher const &)
 copy operator


Detailed Description

interface for objects watching over the change of network configuration items

Definition at line 47 of file nConfig.h.


Constructor & Destructor Documentation

nIConfItemWatcher::nIConfItemWatcher ( nConfItemBase item  ) 

constructor

Parameters:
item the item to watch

Definition at line 263 of file nConfig.cpp.

References nConfItemBase::watcher_.

00264         :watched_( item )
00265 {
00266     item.watcher_ = this;
00267 }

nIConfItemWatcher::~nIConfItemWatcher ( void   )  [protected, pure virtual]

destructor

Definition at line 278 of file nConfig.cpp.

References NULL, watched_, and nConfItemBase::watcher_.

00279 {
00280     watched_.watcher_ = NULL;
00281 }

nIConfItemWatcher::nIConfItemWatcher (  )  [private]

constructor

nIConfItemWatcher::nIConfItemWatcher ( nIConfItemWatcher const &   )  [private]

copy constructor


Member Function Documentation

void nIConfItemWatcher::Change ( bool  nonDefault  )  [inline]

called on configuration item changes

Parameters:
nonDefault 

Definition at line 302 of file nConfig.h.

References OnChange().

Referenced by nConfItemBase::RevertToDefaults(), and nConfItemBase::WasChanged().

00303 {
00304     this->OnChange( nonDefault );
00305 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool nIConfItemWatcher::Writable ( void   )  const [inline]

returns whether the item should be writable

Returns:
true if the watched item is changable

Definition at line 367 of file nConfig.h.

References DoWritable().

Referenced by nConfItemBase::Writable().

00368 {
00369     return this->DoWritable();
00370 }

Here is the call graph for this function:

Here is the caller graph for this function:

void nIConfItemWatcher::OnChange ( bool  nonDefault  )  [private, pure virtual]

called on configuration item changes

Parameters:
nonDefault flag indicating whether the change was away from the default

Implemented in nConfItemVersionWatcher.

Definition at line 293 of file nConfig.cpp.

Referenced by Change().

00294 {
00295 }

Here is the caller graph for this function:

virtual bool nIConfItemWatcher::DoWritable (  )  const [private, pure virtual]

returns whether the item should be writable

Implemented in nConfItemVersionWatcher.

Referenced by Writable().

Here is the caller graph for this function:

nIConfItemWatcher& nIConfItemWatcher::operator= ( nIConfItemWatcher const &   )  [private]

copy operator


Member Data Documentation

nConfItemBase& nIConfItemWatcher::watched_ [protected]

the watched item

Definition at line 57 of file nConfig.h.

Referenced by nConfItemVersionWatcher::FillTemplateParameters(), nConfItemVersionWatcher::OnVersionChange(), and ~nIConfItemWatcher().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:47:31 2008 for Armagetron Advanced by  doxygen 1.5.4