#include <nConfig.h>
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 | |
| nConfItemBase & | watched_ |
| 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 | |
| nIConfItemWatcher & | operator= (nIConfItemWatcher const &) |
| copy operator | |
Definition at line 47 of file nConfig.h.
| nIConfItemWatcher::nIConfItemWatcher | ( | nConfItemBase & | item | ) |
constructor
| item | the item to watch |
Definition at line 263 of file nConfig.cpp.
References nConfItemBase::watcher_.
| nIConfItemWatcher::~nIConfItemWatcher | ( | void | ) | [protected, pure virtual] |
destructor
Definition at line 278 of file nConfig.cpp.
References NULL, watched_, and nConfItemBase::watcher_.
| nIConfItemWatcher::nIConfItemWatcher | ( | ) | [private] |
constructor
| nIConfItemWatcher::nIConfItemWatcher | ( | nIConfItemWatcher const & | ) | [private] |
copy constructor
| void nIConfItemWatcher::Change | ( | bool | nonDefault | ) | [inline] |
called on configuration item changes
| nonDefault |
Definition at line 302 of file nConfig.h.
References OnChange().
Referenced by nConfItemBase::RevertToDefaults(), and nConfItemBase::WasChanged().
00303 { 00304 this->OnChange( nonDefault ); 00305 }
| bool nIConfItemWatcher::Writable | ( | void | ) | const [inline] |
returns whether the item should be writable
Definition at line 367 of file nConfig.h.
References DoWritable().
Referenced by nConfItemBase::Writable().
00368 { 00369 return this->DoWritable(); 00370 }
| void nIConfItemWatcher::OnChange | ( | bool | nonDefault | ) | [private, pure virtual] |
called on configuration item changes
| 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().
| virtual bool nIConfItemWatcher::DoWritable | ( | ) | const [private, pure virtual] |
returns whether the item should be writable
Implemented in nConfItemVersionWatcher.
Referenced by Writable().
| nIConfItemWatcher& nIConfItemWatcher::operator= | ( | nIConfItemWatcher const & | ) | [private] |
copy operator
nConfItemBase& nIConfItemWatcher::watched_ [protected] |
the watched item
Definition at line 57 of file nConfig.h.
Referenced by nConfItemVersionWatcher::FillTemplateParameters(), nConfItemVersionWatcher::OnVersionChange(), and ~nIConfItemWatcher().
1.5.4