CFx SDK Documentation 2024 SP0
|
#include <FdField.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdFdFieldEvaluator) | |
virtual const OdString | evaluatorId () const =0 |
virtual const OdString | evaluatorId (OdDbField *pField) const =0 |
virtual OdResult | initialize (OdDbField *pField) const =0 |
virtual OdResult | compile (OdDbField *pField, OdDbDatabase *pDb, OdFdFieldResult *pResult) const =0 |
virtual OdResult | evaluate (OdDbField *pField, int nContext, OdDbDatabase *pDb, OdFdFieldResult *pResult) const =0 |
virtual OdResult | format (OdDbField *pField, OdString &pszValue) const =0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is an abstract base class that defines the field evaluator interface.
<group Other_Classes>
|
pure virtual |
This function is called by the field framework to compile a field when the field code is changed.
pField | [in] Input field to compile. |
pDb | [in] Input database pointer. |
pResult | [in] Input field result object to set the compilation status. |
|
pure virtual |
This function is called by the field framework when the field needs to be evaluated.
pField | [in] Input field to evaluate. |
nContext | [in] Input context in which the field is evaluated; this context flag is passed to the evaluator and can be one of the predefined by the OdDbField::EvalContext enumeration flags or a user-defined context flag. |
pDb | [in] Input database pointer, which can be NULL if a database could not be obtained in the current context. |
pResult | [in] Input field result object to set the evaluation result and status. |
The evaluator should evaluate the field and set the evaluated value using OdFdFieldResult::setFieldValue() and the error status using OdFdFieldResult::setEvaluationStatus() in the passed result object, which in turn will set them in the field object.
The passed database pointer may be NULL if the field is not a database resident and a database could not be obtained in the current context. If the field evaluation requires a database, then this method can set the evaluation error status in the field result object and return an error.
If the evaluation fails for any reason, the previously cached result in the field object can be left intact and used as the field value. Alternatively, the cached result can be deleted and substituted with an error string (for example, "#ERR"), which will be displayed as a field value.
|
pure virtual |
Returns the evaluator IDs supported by this evaluator.
Returns the evaluator ID for the specified field code.
pField | [in] Input field for which to return an evaluator ID. |
|
pure virtual |
This function is called by the field framework when a field is queried to get the evaluated field value as a string.
pField | [in] Field whose value is to be formatted. |
pszValue | [out] Pointer to the string that is the field value formatted as a string. |
This function is called by the field framework. It calls this method to initialize a new field.
pField | [in] Input field to initialize. |
OdFdFieldEvaluator::ODRX_DECLARE_MEMBERS | ( | OdFdFieldEvaluator | ) |