![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cExpressionBase.h>
Public Member Functions | |
| IGNORE_WARN_ABSTRACT (cExpressionBase) | |
| HRESULT | GetArrayListRef (const ATOMCHAR_t *&rpszExp, OUT cVariant &vValRet, ITERATE_t nAppendStart=0) |
| HRESULT | GetArrayRef (const ATOMCHAR_t *&rpszExp, OUT cVariant &vValRet, ITERATE_t nAppendStart=0) |
| HRESULT | GetMapListRef (const ATOMCHAR_t *&rpszExp, OUT cVarMap &rMapRet) |
| HRESULT | GetMapRef (const ATOMCHAR_t *&rpszExp, OUT cVarMap &rMapRet) |
| HRESULT | GetMapListRef (const ATOMCHAR_t *&rpszExp, OUT cVariant &rMapRet) |
| HRESULT | GetMapRef (const ATOMCHAR_t *&rpszExp, OUT cVariant &vValRet) |
| virtual HRESULT | GetVarRef2 (const ATOMCHAR_t *&rpszExp, OUT cVariant &vValRet, bool bInArray) |
| cVariant | GetVarRef (const ATOMCHAR_t *&rpszExp) |
| HRESULT | GetVar (const ATOMCHAR_t *pszExp, OUT cVariant &vValRet) |
| cVariant | GetVar (const ATOMCHAR_t *pszExp) |
| UNITTEST_FRIEND (cExpressionBase) | |
Static Public Member Functions | |
| static bool GRAYCALL | IsParenNeeded (const ATOMCHAR_t *pszExp) |
| static HRESULT GRAYCALL | GetStringRefQ (const ATOMCHAR_t *&rpszExp, OUT cStringA &rsRet) |
| static HRESULT GRAYCALL | GetStringRefV (const ATOMCHAR_t *&rpszExp, OUT cVariant &rvValRet) |
| static HRESULT GRAYCALL | GetMapElementName (const ATOMCHAR_t *&rpszExp, OUT cStringA &rsName) |
| static HRESULT GRAYCALL | GetSimpleVarRef (const ATOMCHAR_t *&rpszExp, OUT cVariant &vValRet) |
Static Public Attributes | |
| static const ATOMCHAR_t | k_ArrayOpen = '[' |
| static const ATOMCHAR_t | k_ArrayClose = ']' |
| static const ATOMCHAR_t | k_MapOpen = '{' |
| static const ATOMCHAR_t | k_MapClose = '}' |
Simple string to cVariant evaluation. no complex expressions. e.g. no math operators. No methods called, etc. This can be overridden by cExpressionExec to give lots more functionality.
| HRESULT GrayLib::cExpressionBase::GetArrayListRef | ( | const ATOMCHAR_t *& | rpszExp, |
| OUT cVariant & | vValRet, | ||
| ITERATE_t | nAppendStart = 0 |
||
| ) |
Parse a string for a list of comma separated args. put_StrExpUnk Parse the output from GetStrArray(); Don't assume it is [blocked]. Terminates on any bad syntax or end type character.
| HRESULT GrayLib::cExpressionBase::GetArrayRef | ( | const ATOMCHAR_t *& | rpszExp, |
| OUT cVariant & | vValRet, | ||
| ITERATE_t | nAppendStart = 0 |
||
| ) |
get array. assume it is [blocked].
|
static |
| HRESULT GrayLib::cExpressionBase::GetMapListRef | ( | const ATOMCHAR_t *& | rpszExp, |
| OUT cVariant & | rMapRet | ||
| ) |
Don't assume it is {blocked}.
| HRESULT GrayLib::cExpressionBase::GetMapListRef | ( | const ATOMCHAR_t *& | rpszExp, |
| OUT cVarMap & | rMapRet | ||
| ) |
Parse a list of mapped "Name: Value" paired items. separated by commas. Don't assume it is {blocked}. Terminates on any bad syntax or end type character. Convert to array if names are omitted??
| HRESULT GrayLib::cExpressionBase::GetMapRef | ( | const ATOMCHAR_t *& | rpszExp, |
| OUT cVariant & | vValRet | ||
| ) |
Parse a list of mapped "Name : Value" paired items. separated by commas. assume it is {blocked}. Convert to array if names are omitted??
| HRESULT GrayLib::cExpressionBase::GetMapRef | ( | const ATOMCHAR_t *& | rpszExp, |
| OUT cVarMap & | rMapRet | ||
| ) |
Parse a list of mapped "Name : Value" paired items. separated by commas. assume it is {blocked}. Convert to array if names are omitted??
|
static |
Parse a single value. not an expression. Simple string to var evaluation. no complex expressions. e.g. no math operators.
|
static |
Get quoted string. remove quotes. find closing quote.
|
static |
Get quoted string
|
inline |
This version doesn't advance the pszExp pointer.
|
inline |
This version doesn't advance the pszExp pointer.
|
inline |
Advances rpszExp past the parsed stuff.
|
virtual |
Base string to var evaluation. no complex expressions and no math operators. Override as cExpressionExec for that. opposite of cVariantData::GetStrExpT
Reimplemented in GrayLib::cExpressionExec.
| GrayLib::cExpressionBase::IGNORE_WARN_ABSTRACT | ( | cExpressionBase | ) |
|
static |
| GrayLib::cExpressionBase::UNITTEST_FRIEND | ( | cExpressionBase | ) |
|
static |
|
static |
|
static |
|
static |