|
Aegis
4.25.D505
|
#include <real.h>
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_real & | operator= (const introspector_real &) |
Private Attributes | |
| double & | where |
The introspector_real class is used to represent the manipulations required to manage floating point values by the meta-data parser.
| virtual introspector_real::~introspector_real | ( | ) | [virtual] |
The destructor.
| introspector_real::introspector_real | ( | double & | where | ) | [private] |
The constructor. It is private on purpose, use the create class method instead.
| where | The location of the floating point value to be manipulated. |
| introspector_real::introspector_real | ( | ) | [private] |
The default constructor. Do not use.
| introspector_real::introspector_real | ( | const introspector_real & | ) | [private] |
The copy constructor. Do not use.
| static pointer introspector_real::create | ( | double & | where | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| where | The 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.
| n | The 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.
| n | The 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.
| op | The output to write the value on |
| name | The name of the field being written |
| value | The value of the field being written |
| show_if_default | Whether 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.
| op | The output to write the value on |
| name | The name of the field being written |
| value | The value of the field being written |
| show_if_default | Whether or not to display zero values, or hide them. |
double& introspector_real::where [private] |
1.7.6.1