Aegis  4.25.D505
Data Structures | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
introspector_time Class Reference

#include <time.h>

Inheritance diagram for introspector_time:
introspector

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_timeoperator= (const introspector_time &)

Private Attributes

adapter::pointer how

Detailed Description

The introspector_time class is used to represent the manipulations required to manage time_t values by the meta-data parser.

Definition at line 29 of file time.h.


Constructor & Destructor Documentation

The destructor.

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

Parameters:
howThe technique to use to manipulate the actual time_t variable.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

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.

Parameters:
howThe 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.

Parameters:
nThe 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.

Parameters:
nThe 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.

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_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.

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

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

Definition at line 170 of file time.h.


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