template <class T, const char tchar> class param_type : public Param

Typed parameter class template

Inheritance:


Public Methods

param_type(void)
Default constructor.
param_type(T Value)
Initializing Constructor.
param_type(const char *vStr)
Initializing Constructor.
param_type(const Param& x)
Initializing Constructor.
~param_type()
Destructor.
operator int() const
Cast parameter value to integer.
operator double() const
Cast parameter value to dounble precision float.
operator std::string() const
Cast parameter value to atring.
int operator=(int x)
Set parameter value to integer.
double operator=(double x)
Set parameter value to integer.
std::string operator=(const std::string& x)
Set parameter value to a string.
std::ostream& Write(std::ostream& ostr)
Write the parameter value.

Inherited from Param:

Public Methods

const char* getType(void) const

Documentation

Typed parameter class template
param_type(void)
Default constructor.

param_type(T Value)
Construct a parameter object an initialize it with an argument of the same type.

param_type(const char *vStr)
Construct a parameter object and initialize it from a string.

param_type(const Param& x)
Construct a parameter object and initialize it from a string.

~param_type()
Destroy the parameter.

operator int() const
Cast the parameter value to a integer. If the parameter can't be converted to integer, 0 is returned.
Returns:
Parameter value converted to an integer.

operator double() const
Cast the parameter value to a double precision float. If the parameter can't be converted to a float, 0.0 is returned.
Returns:
Parameter value converted to float.

operator std::string() const
Cast the parameter value to a string.
Returns:
Parameter value converted to a atring.

int operator=(int x)
Set the parameter to an integer value. The argument is converted to the parameter type if necessary. The parameter type remains unchanged.
Returns:
Parameter value converted to an integer.

double operator=(double x)
Set the parameter to a doble precision float value. The argument is converted to the parameter type if necessary. The parameter type remains unchanged.
Returns:
Parameter value converted to an integer.

std::string operator=(const std::string& x)
Set the parameter to a string value. The argument is converted to the parameter type if necessary. The parameter type remains unchanged.
Returns:
Parameter value converted to an integer.

std::ostream& Write(std::ostream& ostr)
Write the parameter value to the specified output stream.
Returns:
Reference to the output stream.


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++