SGRealParam Class Reference

Real-value parameters (for 'double' numbers). More...

#include <SGParameter.hpp>

Inheritance diagram for SGRealParam:

Inheritance graph
[legend]
Collaboration diagram for SGRealParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

double Value ()
 Returns the value of the parameter.
 SGRealParam (char *name, SGParam *tl)
 Constructor, no default value.
 SGRealParam (char *name, SGParam *tl, double v)
 Constructor, with a default value.

Static Public Attributes

static char TypeId [] = "r"

Protected Member Functions

void read_param ()
 Reads a value of the parameter from the input stream.
void print_param (std::ostream &s, short indent)
 Prints the name and the value of the parameter with a given indent.

Detailed Description

Real-value parameters (for 'double' numbers).


Constructor & Destructor Documentation

SGRealParam::SGRealParam ( char *  name,
SGParam tl 
) [inline]

Constructor, no default value.

Parameters:
[in] name The name of the parameter
[in] tl The next parameter in the list

SGRealParam::SGRealParam ( char *  name,
SGParam tl,
double  v 
) [inline]

Constructor, with a default value.

Parameters:
[in] name The name of the parameter
[in] tl The next parameter in the list
[in] v The default value


Member Function Documentation

void SGRealParam::read_param (  )  [protected, virtual]

Reads a value of the parameter from the input stream.

Implements SGParam.

void SGRealParam::print_param ( std::ostream &  s,
short  indent 
) [protected, virtual]

Prints the name and the value of the parameter with a given indent.

Parameters:
[in] s The stream to print to
[in] indent The indent for the output lines

Implements SGParam.

double SGRealParam::Value (  )  [inline]

Returns the value of the parameter.


Member Data Documentation

char SGRealParam::TypeId = "r" [static]


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 12:34:32 2007 for SG2 by  doxygen 1.5.2