muParserX 2.0.0
Loading...
Searching...
No Matches
mup::IValueReader Class Referenceabstract

Interface for custom value reader objects. More...

#include <mpIValReader.h>

Inheritance diagram for mup::IValueReader:

Public Member Functions

virtual bool IsValue (const char_type *a_szExpr, int &a_iPos, Value &a_Val)=0
 Check a certain position in an expression for the presence of a value.
virtual IValueReaderClone (TokenReader *pParent) const =0
 Clone this ValueReader object.
virtual void SetParent (TokenReader *pTokenReader)
 Assign this value reader object to a token reader object.

Detailed Description

Interface for custom value reader objects.

Value readers are objects used for identifying values in an expression.

Member Function Documentation

◆ Clone()

virtual IValueReader * mup::IValueReader::Clone ( TokenReader * pParent) const
pure virtual

Clone this ValueReader object.

Returns
Pointer to the cloned value reader object.

Implemented in mup::BinValReader, mup::BoolValReader, mup::DblValReader, mup::HexValReader, and mup::StrValReader.

Here is the call graph for this function:

◆ IsValue()

virtual bool mup::IValueReader::IsValue ( const char_type * a_szExpr,
int & a_iPos,
Value & a_Val )
pure virtual

Check a certain position in an expression for the presence of a value.

Parameters
a_iPos[in/out] Reference to an integer value representing the current position of the parser in the expression.
a_ValIf a value is found it is stored in a_Val
Returns
true if a value was found

Implemented in mup::BinValReader, mup::BoolValReader, mup::DblValReader, mup::HexValReader, and mup::StrValReader.

◆ SetParent()

void mup::IValueReader::SetParent ( TokenReader * pTokenReader)
virtual

Assign this value reader object to a token reader object.

The token reader does the tokenization of the expression. It uses this value reader to detect values.

Here is the call graph for this function:


muParserX documentation - (C) 2010 Ingo Berg