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

#include <meta_context.h>

Inheritance diagram for meta_context:
meta_context_introspector meta_context_sem

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_contextoperator= (const meta_context &)

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
sThe 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.)

Parameters:
scpsubstitution context
textthe 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.

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

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

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

Parameters:
sThe value of the string constant.

Implemented in meta_context_sem, and meta_context_introspector.


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