muParserX 2.0.0
Loading...
Searching...
No Matches
mup::HexValReader Class Reference

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

#include <mpValReader.h>

Inheritance diagram for mup::HexValReader:
Collaboration diagram for mup::HexValReader:

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 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