|
Aegis
4.25.D505
|
#include <introspector.h>
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_introspector & | operator= (const meta_context_introspector &) |
Private Attributes | |
| introspector_vector | stack |
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.
| virtual meta_context_introspector::~meta_context_introspector | ( | ) | [virtual] |
The destructor.
The default constructor.
| meta_context_introspector::meta_context_introspector | ( | const meta_context_introspector & | ) | [private] |
The copy constructor. Do not use.
| 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.
| s | The 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.
| name | The 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.
| n | The 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.
| filename | The name of the file to be parsed. |
| ip | The 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.
| n | The 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.
| s | The value of the string constant. |
Implements meta_context.
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.
1.7.6.1