Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Preference< T > Class Template Reference

#include <Preference.h>

Inheritance diagram for Preference< T >:

Inheritance graph
[legend]
Collaboration diagram for Preference< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Preference (PrefsGroup PrefsGroup, const CString &sName, const T &defaultValue)
CString ToString () const
void FromString (const CString &s)
void LoadDefault ()
T & Value ()
 operator const T () const
void operator= (const T &other)

Private Attributes

m_currentValue
m_defaultValue

template<class T>
class Preference< T >


Constructor & Destructor Documentation

template<class T>
Preference< T >::Preference PrefsGroup  PrefsGroup,
const CString &  sName,
const T &  defaultValue
[inline]
 


Member Function Documentation

template<class T>
void Preference< T >::FromString const CString &  s  )  [virtual]
 

Implements IPreference.

template<class T>
void Preference< T >::LoadDefault  )  [inline, virtual]
 

Implements IPreference.

template<class T>
Preference< T >::operator const T  )  const [inline]
 

template<class T>
void Preference< T >::operator= const T &  other  )  [inline]
 

template<class T>
CString Preference< T >::ToString  )  const [virtual]
 

Implements IPreference.

template<class T>
T& Preference< T >::Value  )  [inline]
 


Member Data Documentation

template<class T>
T Preference< T >::m_currentValue [private]
 

template<class T>
T Preference< T >::m_defaultValue [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 21:00:38 2005 for StepMania by doxygen 1.3.7