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

#include <integer.h>

Inheritance diagram for introspector_integer:
introspector

Public Member Functions

virtual ~introspector_integer ()

Static Public Member Functions

static pointer create (long &where)
static void write (const output::pointer &op, const nstring &name, long value, bool show_if_default=false)
static void write_xml (const output::pointer &op, const nstring &name, long 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_integer (long &where)
 introspector_integer ()
 introspector_integer (const introspector_integer &)
introspector_integeroperator= (const introspector_integer &)

Private Attributes

long & where

Detailed Description

The introspector_integer class is used to represent the manipulations required to manage integers by the meta-data parser.

Definition at line 29 of file integer.h.


Constructor & Destructor Documentation

The destructor.

introspector_integer::introspector_integer ( long &  where) [private]

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

Parameters:
whereThe location of the integer value to be manipulated.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer introspector_integer::create ( long &  where) [static]

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

Parameters:
whereThe location of the integer value to be manipulated.
nstring introspector_integer::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_integer::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_integer& introspector_integer::operator= ( const introspector_integer ) [private]

The assignment operator. Do not use.

void introspector_integer::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_integer::write ( const output::pointer op,
const nstring name,
long  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_integer::write_xml ( const output::pointer op,
const nstring name,
long  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

long& introspector_integer::where [private]

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

Definition at line 105 of file integer.h.


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