API Reference > Other Classes > OdFdFieldEvaluator Class > OdFdFieldEvaluator Methods > OdFdFieldEvaluator::compile Method
OdFdFieldEvaluator::compile Method
Syntax
C++
virtual OdResult compile(OdDbField* pField, OdDbDatabase* pDb, OdFdFieldResult* pResult) const = 0;
Parameters 
Description 
OdDbField* pField 
[in] Input field to compile.  
OdDbDatabase* pDb 
[in] Input database pointer.  
OdFdFieldResult* pResult 
[in] Input field result object to set the compilation status. 

This function is called by the field framework to compile a field when the field code is changed.

The evaluator can do any parsing of the field code here and store the parsed data in the field. This method will be called only when the field code is changed, unlike evaluate(), which is called whenever the field needs to be evaluated.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.