20 #ifndef SRC_INITIALIZATIONPLUGIN_EVALLISTENER_H_
21 #define SRC_INITIALIZATIONPLUGIN_EVALLISTENER_H_
23 #include <InitializationPlugin.h>
24 #include <Events_Loop.h>
30 class InitializationPlugin_Parameter;
45 INITIALIZATIONPLUGIN_EXPORT
46 virtual void processEvent(
const std::shared_ptr<Events_Message>& theMessage);
53 double evaluate(std::shared_ptr<ModelAPI_Feature> theParameter,
54 const std::wstring& theExpression, std::string& theError,
55 std::list<std::shared_ptr<ModelAPI_ResultParameter> >& theParamsList,
56 const bool theIsParameter =
false);
59 double evaluate(std::wstring& theVariable,
60 double theValueVariable,
61 std::shared_ptr<ModelAPI_Feature> theParameter,
62 const std::wstring& theExpression,
63 std::string& theError,
64 std::list<std::shared_ptr<ModelAPI_ResultParameter> >& theParamsList,
72 std::shared_ptr<InitializationPlugin_PyInterp> myInterp;
Base interface for any event listener.
Definition: Events_Listener.h:37
Class which process the events from the event loop.
Definition: InitializationPlugin_EvalListener.h:39
virtual INITIALIZATIONPLUGIN_EXPORT void processEvent(const std::shared_ptr< Events_Message > &theMessage)
Reimplemented from Events_Listener::processEvent().
Definition: InitializationPlugin_EvalListener.cpp:93
void processEvaluationEvent(const std::shared_ptr< Events_Message > &theMessage)
Processes Evaluation event.
Definition: InitializationPlugin_EvalListener.cpp:267
double evaluate(std::shared_ptr< ModelAPI_Feature > theParameter, const std::wstring &theExpression, std::string &theError, std::list< std::shared_ptr< ModelAPI_ResultParameter > > &theParamsList, const bool theIsParameter=false)
Evaluates theExpression and returns its value.
Definition: InitializationPlugin_EvalListener.cpp:237
Helper class for using Python interpreter.
Definition: InitializationPlugin_PyInterp.h:36
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:39
The construction element result of a feature.
Definition: ModelAPI_ResultParameter.h:34