"L. Spiro Engine"
|
Parses a single expression related to #if and #elif. More...
#include <LSGPreProc.h>
Classes | |
struct | LSG_PREPROC_DEFINE |
Public Types | |
enum | LSG_ERRORS { LSG_E_FAILURE, LSG_E_SUCCESS, LSG_E_ERROR } |
typedef struct lsg::CPreProc::LSG_PREPROC_DEFINE * | LPLSG_PREPROC_DEFINE |
typedef struct lsg::CPreProc::LSG_PREPROC_DEFINE | LPCLSG_PREPROC_DEFINE |
typedef CMap < LSG_PREPROC_DEFINE, CString > | LSG_MACROS |
Public Member Functions | |
CPreProcContainer &LSE_CALL | GetContainer () |
LSG_ERRORS LSE_CALL | Parse (const CString &_sExp) |
LSBOOL LSE_CALL | GetResult (const LSG_MACROS &_mMacros, LSBOOL &_bRet) const |
Protected Member Functions | |
LSBOOL LSE_CALL | EvalNode (LSUINT32 _ui32Index, LSINT64 &_i64Return, const LSG_MACROS &_mMacros) const |
Protected Attributes | |
CPreProcContainer | m_ppcContainer |
Parses a single expression related to #if and #elif.
Class CPreProc Description: Parses a single expression related to #if and #elif.
typedef struct lsg::CPreProc::LSG_PREPROC_DEFINE * lsg::CPreProc::LPLSG_PREPROC_DEFINE |
A define.
typedef CMap<LSG_PREPROC_DEFINE, CString> lsg::CPreProc::LSG_MACROS |
The dictionary.
Error codes.
LSBOOL LSE_CALL lsg::CPreProc::EvalNode | ( | LSUINT32 | _ui32Index, |
LSINT64 & | _i64Return, | ||
const LSG_MACROS & | _mMacros | ||
) | const [protected] |
Process a single node and return the result of that node.
_ui32Index | The index of the node to process. |
_i64Return | Holds the return value of the node. |
_mMacros | The macros. |
CPreProcContainer& LSE_CALL lsg::CPreProc::GetContainer | ( | ) |
Get the container.
LSBOOL LSE_CALL lsg::CPreProc::GetResult | ( | const LSG_MACROS & | _mMacros, |
LSBOOL & | _bRet | ||
) | const |
Evaluate the parsed expression with the given macro dictionary.
_mMacros | The macros. |
_bRet | Holds the result of the expression. |
LSG_ERRORS LSE_CALL lsg::CPreProc::Parse | ( | const CString & | _sExp | ) |
Parse an expression, returning an error code.
_sExp | The expression to parse. |
CPreProcContainer lsg::CPreProc::m_ppcContainer [protected] |
The container for holding the parsed data.