ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
No Matches
ExpressionRepository Class Referenceabstract


An implementation of this abstract interface class may be attached to field Compiler::Repository to enable an automated the definition and retrieval of expression strings of nested expressions.

A default implementation, which uses typical ALib mechanics to define expression strings, is given with class StandardRepository .

More information about automated nested expressions and the use of this interface class is provided with manual chapter 10.5 Automated Named Expressions.

Definition at line 60 of file compiler.hpp.

#include <compiler.hpp>

Inheritance diagram for ExpressionRepository:

Public Method Index:

virtual ~ExpressionRepository ()
virtual bool Get (const String &identifier, AString &target)=0

Constructor(s) / Destructor Details::

◆ ~ExpressionRepository()

virtual ~ExpressionRepository ( )

Virtual destructor.

Definition at line 64 of file compiler.hpp.

Method Details:

◆ Get()

virtual bool Get ( const String & identifier,
AString & target )
pure virtual

This method is called during compilation of expressions in the case a named expression is not found by method Compiler::GetNamed .

identifierThe name of the required expression.
[out]targetThe target to write the requested expression string to.
true, if the expression string could be retrieved, false otherwise. If true is returned and target is still empty, then the string is defined to be empty, which throws an exception on compilation.

Implemented in StandardRepository.

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