TypedConfigProperty< T > Class Template Reference
[Configuration Handling]

#include <SyncEvolutionConfig.h>

Inheritance diagram for TypedConfigProperty< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TypedConfigProperty (const string &name, const string &comment, const string &defValue=string("0"))
virtual bool checkValue (const string &value, string &error) const
void setProperty (ConfigNode &node, const T &value) const
void setProperty (FilterConfigNode &node, const T &value, bool temporarily=false) const
getProperty (ConfigNode &node, bool *isDefault=NULL)


Detailed Description

template<class T>
class TypedConfigProperty< T >

Instead of reading and writing strings, this class interprets the content as a specific type.

Definition at line 254 of file SyncEvolutionConfig.h.


Constructor & Destructor Documentation

template<class T >
TypedConfigProperty< T >::TypedConfigProperty ( const string &  name,
const string &  comment,
const string &  defValue = string("0") 
) [inline]

Definition at line 256 of file SyncEvolutionConfig.h.


Member Function Documentation

template<class T >
virtual bool TypedConfigProperty< T >::checkValue ( const string &  value,
string &  error 
) const [inline, virtual]

This implementation accepts all values that can be converted to the required type.

Reimplemented from ConfigProperty.

Definition at line 264 of file SyncEvolutionConfig.h.

template<class T >
T TypedConfigProperty< T >::getProperty ( ConfigNode node,
bool *  isDefault = NULL 
) [inline]

template<class T >
void TypedConfigProperty< T >::setProperty ( FilterConfigNode node,
const T &  value,
bool  temporarily = false 
) const [inline]

template<class T >
void TypedConfigProperty< T >::setProperty ( ConfigNode node,
const T &  value 
) const [inline]


The documentation for this class was generated from the following file:

Generated on Sat Oct 18 17:17:06 2008 for SyncEvolution and Funambol by  doxygen 1.5.7.1