CFx SDK Documentation
2022 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.
|
pure virtual |
This function is called by the frame 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.
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 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 field value.
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 OdDbField::EvalContext enum 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 |
|
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 calls this method to initialize a new field.
pField | [in] Input field to initialize |
OdFdFieldEvaluator::ODRX_DECLARE_MEMBERS | ( | OdFdFieldEvaluator | ) |