|
Aegis
4.25.D505
|
#include <meta_context.h>
Public Member Functions | |
| virtual | ~meta_context () |
| meta_context () | |
| virtual void | integer (long n)=0 |
| virtual void | real (double n)=0 |
| virtual void | string (const nstring &s)=0 |
| virtual void | enumeration (const nstring &s)=0 |
| virtual void | list ()=0 |
| virtual void | list_end ()=0 |
| virtual void | field (const nstring &name)=0 |
| virtual void | field_end ()=0 |
| virtual void | end ()=0 |
Protected Member Functions | |
| void | error (sub_context_ty *scp, const char *text) |
Private Member Functions | |
| meta_context (const meta_context &) | |
| meta_context & | operator= (const meta_context &) |
The meta_context abstract base class is used to represent the interface to the use of parsed Aegis meta-data.
Definition at line 30 of file meta_context.h.
| virtual meta_context::~meta_context | ( | ) | [virtual] |
The destructor.
The default constructor.
| meta_context::meta_context | ( | const meta_context & | ) | [private] |
The copy constructor. Do not use.
| virtual void meta_context::end | ( | ) | [pure virtual] |
The end method is called at the end of input.
Implemented in meta_context_sem, and meta_context_introspector.
| virtual void meta_context::enumeration | ( | const nstring & | s | ) | [pure virtual] |
The enumeration method is called when the parser sees a name in an enumeration tag place.
| s | The name of the enumerand. |
Implemented in meta_context_sem, and meta_context_introspector.
| void meta_context::error | ( | sub_context_ty * | scp, |
| const char * | text | ||
| ) | [protected] |
The lex_error method is a helper which proxies errors to the global lex_error function, for reporting error messages. (Reduces include explosion.)
| scp | substitution context |
| text | the text of the error message |
| virtual void meta_context::field | ( | const nstring & | name | ) | [pure 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. |
Implemented in meta_context_sem, and meta_context_introspector.
| virtual void meta_context::field_end | ( | ) | [pure virtual] |
The field_end method is called by the parser when it sees the end of a name=value field.
Implemented in meta_context_sem, and meta_context_introspector.
| virtual void meta_context::integer | ( | long | n | ) | [pure virtual] |
The integer method is called by the parser when an integer value is seen.
| n | The value of the number. |
Implemented in meta_context_sem, and meta_context_introspector.
| virtual void meta_context::list | ( | ) | [pure 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.
Implemented in meta_context_sem, and meta_context_introspector.
| virtual void meta_context::list_end | ( | ) | [pure virtual] |
The list_end method is called by the parser when it sees the end of a list element.
Implemented in meta_context_sem, and meta_context_introspector.
| meta_context& meta_context::operator= | ( | const meta_context & | ) | [private] |
The assignment operator. Do not use.
| virtual void meta_context::real | ( | double | n | ) | [pure virtual] |
The real method is called by the parser when a floating point value is seen.
| n | The value of the number. |
Implemented in meta_context_sem, and meta_context_introspector.
| virtual void meta_context::string | ( | const nstring & | s | ) | [pure virtual] |
The string method is called by the parser when a string value is seen.
| s | The value of the string constant. |
Implemented in meta_context_sem, and meta_context_introspector.
1.7.6.1