SGIntParam Class Reference

Integer parameters (for 'long' numbers). More...

#include <SGParameter.hpp>

Inheritance diagram for SGIntParam:

Inheritance graph
[legend]
Collaboration diagram for SGIntParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Static Public Attributes

static char TypeId [] = "i"

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

Integer parameters (for 'long' numbers).


Constructor & Destructor Documentation

SGIntParam::SGIntParam ( 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

SGIntParam::SGIntParam ( char *  name,
SGParam tl,
long  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 SGIntParam::read_param (  )  [protected, virtual]

Reads a value of the parameter from the input stream.

Implements SGParam.

void SGIntParam::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.

long SGIntParam::Value (  )  [inline]

Returns the value of the parameter.


Member Data Documentation

char SGIntParam::TypeId = "i" [static]


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