dtDAL::NamedPODParameter< ParamType > Class Template Reference

This is a template for the single piece of data types to make reading data to and from a string easier. More...

#include <namedparameter.h>

Inheritance diagram for dtDAL::NamedPODParameter< ParamType >:

dtDAL::NamedGenericParameter< ParamType > dtDAL::NamedParameter dtDAL::AbstractParameter

List of all members.

Public Member Functions

 NamedPODParameter (const std::string &name, const ParamType &defaultValue, bool isList=false)
virtual const std::string ToString () const
virtual bool FromString (const std::string &value)
 
Returns:
true if it was able to assign the value based on the string or false if not.


Protected Member Functions

virtual ~NamedPODParameter ()


Detailed Description

template<class ParamType>
class dtDAL::NamedPODParameter< ParamType >

This is a template for the single piece of data types to make reading data to and from a string easier.

Constructor & Destructor Documentation

template<class ParamType>
dtDAL::NamedPODParameter< ParamType >::NamedPODParameter ( const std::string &  name,
const ParamType &  defaultValue,
bool  isList = false 
) [inline]

template<class ParamType>
virtual dtDAL::NamedPODParameter< ParamType >::~NamedPODParameter (  )  [inline, protected, virtual]


Member Function Documentation

template<class ParamType>
virtual const std::string dtDAL::NamedPODParameter< ParamType >::ToString (  )  const [inline, virtual]

Reimplemented from dtDAL::NamedGenericParameter< ParamType >.

Reimplemented in dtDAL::NamedBooleanParameter.

template<class ParamType>
virtual bool dtDAL::NamedPODParameter< ParamType >::FromString ( const std::string &  value  )  [inline, virtual]

Returns:
true if it was able to assign the value based on the string or false if not.

Parameters:
value the string value to assign the parameter to.

Reimplemented from dtDAL::NamedGenericParameter< ParamType >.

Reimplemented in dtDAL::NamedBooleanParameter.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008