nSettingItemWatched< T > Class Template Reference

convenience helper class: setting item and version watcher combined More...

#include <nConfig.h>

Collaboration diagram for nSettingItemWatched< T >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef
nConfItemVersionWatcher::Group 
Group

Public Member Functions

 nSettingItemWatched (char const *title, T &value, Group group, int min, int max=-1)
void Set (T const &value)

Private Attributes

nSettingItem< T > setting_
nConfItemVersionWatcher watcher_


Detailed Description

template<class T>
class nSettingItemWatched< T >

convenience helper class: setting item and version watcher combined

Definition at line 271 of file nConfig.h.


Member Typedef Documentation

template<class T>
typedef nConfItemVersionWatcher::Group nSettingItemWatched< T >::Group

Definition at line 274 of file nConfig.h.


Constructor & Destructor Documentation

template<class T>
nSettingItemWatched< T >::nSettingItemWatched ( char const *  title,
T &  value,
Group  group,
int  min,
int  max = -1 
) [inline]

Definition at line 277 of file nConfig.h.

00278             : setting_( title, value )
00279             , watcher_( setting_, group, min, max )
00280     {
00281     }


Member Function Documentation

template<class T>
void nSettingItemWatched< T >::Set ( T const &  value  )  [inline]

Definition at line 283 of file nConfig.h.

References nSettingItemWatched< T >::setting_.

00284     {
00285         this->setting_.Set( value );
00286     }


Member Data Documentation

template<class T>
nSettingItem< T > nSettingItemWatched< T >::setting_ [private]

Definition at line 288 of file nConfig.h.

Referenced by nSettingItemWatched< T >::Set().

template<class T>
nConfItemVersionWatcher nSettingItemWatched< T >::watcher_ [private]

Definition at line 289 of file nConfig.h.


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:50:35 2008 for Armagetron Advanced by  doxygen 1.5.4