Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
introspector_real Class Reference

#include <real.h>

Inheritance diagram for introspector_real:
introspector

Public Member Functions

virtual ~introspector_real ()

Static Public Member Functions

static pointer create (double &where)
static void write (const output::pointer &op, const nstring &name, double value, bool show_if_default=false)
static void write_xml (const output::pointer &op, const nstring &name, double value, bool show_if_default=false)

Protected Member Functions

void integer (long n)
void real (double n)
nstring get_name () const

Private Member Functions

 introspector_real (double &where)
 introspector_real ()
 introspector_real (const introspector_real &)
introspector_realoperator= (const introspector_real &)

Private Attributes

double & where

Detailed Description

The introspector_real class is used to represent the manipulations required to manage floating point values by the meta-data parser.

Definition at line 29 of file real.h.


Constructor & Destructor Documentation

The destructor.

introspector_real::introspector_real ( double &  where) [private]

The constructor. It is private on purpose, use the create class method instead.

Parameters:
whereThe location of the floating point value to be manipulated.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer introspector_real::create ( double &  where) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
whereThe location of the floating point value to be manipulated.
nstring introspector_real::get_name ( ) const [protected, virtual]

The get_name mathod is used to get the name of the type of value the introspector is managing. Used in error messages.

Implements introspector.

void introspector_real::integer ( long  n) [protected, virtual]

The integer method is called by the parser when an integer value is seen.

Parameters:
nThe value of the number.

Reimplemented from introspector.

introspector_real& introspector_real::operator= ( const introspector_real ) [private]

The assignment operator. Do not use.

void introspector_real::real ( double  n) [protected, virtual]

The real method is called by the parser when a floating point value is seen.

Parameters:
nThe value of the number.

Reimplemented from introspector.

static void introspector_real::write ( const output::pointer op,
const nstring name,
double  value,
bool  show_if_default = false 
) [static]

The write class method is used to write the named field to the given output.

Parameters:
opThe output to write the value on
nameThe name of the field being written
valueThe value of the field being written
show_if_defaultWhether or not to display zero values, or hide them.
static void introspector_real::write_xml ( const output::pointer op,
const nstring name,
double  value,
bool  show_if_default = false 
) [static]

The write_xml class method is used to write the named field to the given output as an XML element.

Parameters:
opThe output to write the value on
nameThe name of the field being written
valueThe value of the field being written
show_if_defaultWhether or not to display zero values, or hide them.

Field Documentation

double& introspector_real::where [private]

The where instance variable is ued to remember where to put the value, once parsed.

Definition at line 105 of file real.h.


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