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

#include <introspector.h>

Inheritance diagram for meta_context_introspector:
meta_context

Public Member Functions

virtual ~meta_context_introspector ()
 meta_context_introspector ()
void parse_file (const nstring &filename, const introspector::pointer &ip)

Protected Member Functions

void integer (long n)
void real (double n)
void string (const nstring &s)
void enumeration (const nstring &s)
void list ()
void list_end ()
void field (const nstring &name)
void field_end ()
void end ()

Private Member Functions

 meta_context_introspector (const meta_context_introspector &)
meta_context_introspectoroperator= (const meta_context_introspector &)

Private Attributes

introspector_vector stack

Detailed Description

The meta_context_introspector class is used to represent the processing for parsing meta-data using the introspector technique.

Definition at line 30 of file introspector.h.


Constructor & Destructor Documentation

The destructor.

The default constructor.

The copy constructor. Do not use.


Member Function Documentation

void meta_context_introspector::end ( ) [protected, virtual]

The end method is called at the end of input.

Implements meta_context.

void meta_context_introspector::enumeration ( const nstring s) [protected, virtual]

The enumeration method is called when the parser sees a name in an enumeration tag place.

Parameters:
sThe name of the enumerand.

Implements meta_context.

void meta_context_introspector::field ( const nstring name) [protected, virtual]

The field method is called when the parser sees the start of a name=value field. The field_end method will be called after the value has been parsed.

Parameters:
nameThe nam eof the field.

Implements meta_context.

void meta_context_introspector::field_end ( ) [protected, virtual]

The field_end method is called by the parser when it sees the end of a name=value field.

Implements meta_context.

void meta_context_introspector::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.

Implements meta_context.

void meta_context_introspector::list ( ) [protected, virtual]

The list method is called when the parser sees the start of a list value. The pop method will be called after the value has been parsed.

Implements meta_context.

void meta_context_introspector::list_end ( ) [protected, virtual]

The list_end method is called by the parser when it sees the end of a list element.

Implements meta_context.

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

The assignment operator. Do not use.

void meta_context_introspector::parse_file ( const nstring filename,
const introspector::pointer ip 
)

The parse_file method is used to parse the given file through the given introspector. It expected that this will be called from code generated by fmtgen.

Parameters:
filenameThe name of the file to be parsed.
ipThe instrospector to parse into (it is expected to have its own reference to the data destination).
void meta_context_introspector::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.

Implements meta_context.

void meta_context_introspector::string ( const nstring s) [protected, virtual]

The string method is called by the parser when a string value is seen.

Parameters:
sThe value of the string constant.

Implements meta_context.


Field Documentation

The stack instance variable is used to remember the push-don stack of introspectors used to parse the meta-data.

Definition at line 90 of file introspector.h.


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