|
Aegis
4.25.D505
|
#include <time.h>
Data Structures | |
| class | adapter |
| class | adapter_by_method |
Public Member Functions | |
| virtual | ~introspector_time () |
Static Public Member Functions | |
| static pointer | create (const adapter::pointer &how) |
| static void | write (const output::pointer &op, const nstring &name, time_t value, bool show_if_default=false) |
| static void | write_xml (const output::pointer &op, const nstring &name, time_t 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_time (const adapter::pointer &how) | |
| introspector_time () | |
| introspector_time (const introspector_time &) | |
| introspector_time & | operator= (const introspector_time &) |
Private Attributes | |
| adapter::pointer | how |
The introspector_time class is used to represent the manipulations required to manage time_t values by the meta-data parser.
| virtual introspector_time::~introspector_time | ( | ) | [virtual] |
The destructor.
| introspector_time::introspector_time | ( | const adapter::pointer & | how | ) | [private] |
The constructor. It is private on purpose, use the create class method instead.
| how | The technique to use to manipulate the actual time_t variable. |
| introspector_time::introspector_time | ( | ) | [private] |
The default constructor. Do not use.
| introspector_time::introspector_time | ( | const introspector_time & | ) | [private] |
The copy constructor. Do not use.
| static pointer introspector_time::create | ( | const adapter::pointer & | how | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| how | The technique to use to manipulate the actual time_t variable. |
| nstring introspector_time::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_time::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_time& introspector_time::operator= | ( | const introspector_time & | ) | [private] |
The assignment operator. Do not use.
| void introspector_time::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_time::write | ( | const output::pointer & | op, |
| const nstring & | name, | ||
| time_t | 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_time::write_xml | ( | const output::pointer & | op, |
| const nstring & | name, | ||
| time_t | 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. |
adapter::pointer introspector_time::how [private] |
1.7.6.1