muParserX 2.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mup::HexValReader Class Reference

A class for reading hex values from an expression string. More...

#include <mpValReader.h>

Inheritance diagram for mup::HexValReader:
Inheritance graph
[legend]
Collaboration diagram for mup::HexValReader:
Collaboration graph
[legend]

Public Member Functions

virtual bool IsValue (const char_type *a_szExpr, int &a_iPos, Value &a_fVal) override
 Try to read a hex value from a given position in the expression.
 
virtual IValueReaderClone (TokenReader *pTokenReader) const override
 Clone this ValueReader object.
 
- Public Member Functions inherited from mup::IValueReader
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

A class for reading hex values from an expression string.

Member Function Documentation

◆ Clone()

IValueReader * mup::HexValReader::Clone ( TokenReader pParent) const
overridevirtual

Clone this ValueReader object.

Returns
Pointer to the cloned value reader object.

Implements mup::IValueReader.

Here is the call graph for this function:

◆ IsValue()

bool mup::HexValReader::IsValue ( const char_type a_szExpr,
int &  a_iPos,
Value a_val 
)
overridevirtual

Try to read a hex value from a given position in the expression.

Parameters
a_szExprThe Expression
[in/out]a_iPos The current position in the expression
[out]a_valThe value that was read

Hex values must start with a "0x" characters. The position a_iPos is advanded in case a hex value was found.

Implements mup::IValueReader.


muParserX documentation - (C) 2010 Ingo Berg