ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::expressions::ExpressionRepository Class Referenceabstract

Description:

An implementation of this abstract interface class may be attached to field Compiler::Repository to enable an automated 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 26 of file compiler.inl.

Inheritance diagram for alib::expressions::ExpressionRepository:
[legend]

Public Method Index:

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

Constructor(s) / Destructor Details:

◆ ~ExpressionRepository()

virtual alib::expressions::ExpressionRepository::~ExpressionRepository ( )
inlinevirtual

Virtual destructor.

Definition at line 30 of file compiler.inl.

Method Details:

◆ Get()

virtual bool alib::expressions::ExpressionRepository::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.

Parameters
identifierThe name of the required expression.
[out]targetThe target to write the requested expression string to.
Returns
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 alib::expressions::StandardRepository.


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