1 #ifndef MHO_PythonOperatorBuilderBuilder_HH__
2 #define MHO_PythonOperatorBuilderBuilder_HH__
42 std::string op_name = this->
fFormat[
"name"].get< std::string >();
43 std::string op_category = this->
fFormat[
"operator_category"].get< std::string >();
44 std::string module_name =
fAttributes[
"value"][
"module_name"].get< std::string >();
45 std::string function_name =
fAttributes[
"value"][
"function_name"].get< std::string >();
46 double priority = this->
fFormat[
"priority"].get<
double >();
49 op->
SetName(module_name +
":" + function_name);
54 bool replace_duplicates =
false;
60 msg_error(
"initialization",
"cannot build python operator." << eom);
#define msg_error(xKEY, xCONTENT)
Definition: MHO_Message.hh:244
Class MHO_ContainerStore.
Definition: MHO_ContainerStore.hh:32
Class MHO_FringeData.
Definition: MHO_FringeData.hh:30
Abtract base class for a builder object (creates an operator for later use)
Definition: MHO_OperatorBuilder.hh:27
MHO_OperatorToolbox * fOperatorToolbox
Definition: MHO_OperatorBuilder.hh:150
virtual bool IsConfigurationOk()
Function IsConfigurationOk provided for derived class to validate fAttributes against fFormat and/or ...
Definition: MHO_OperatorBuilder.hh:123
mho_json fFormat
Definition: MHO_OperatorBuilder.hh:160
MHO_FringeData * fFringeData
Definition: MHO_OperatorBuilder.hh:153
mho_json fAttributes
Definition: MHO_OperatorBuilder.hh:162
void SetName(std::string name)
Setter for operator name.
Definition: MHO_Operator.hh:46
virtual void SetPriority(const double &priority)
Setter for operator priority (determines order of execution within a operator category)
Definition: MHO_Operator.hh:64
std::string GetName() const
Getter for operator name.
Definition: MHO_Operator.hh:53
Class MHO_ParameterStore.
Definition: MHO_ParameterStore.hh:52
this class allows a user to inject a python function of the form: func(fringe_data_interface) into th...
Definition: MHO_PyGenericOperator.hh:34
void SetFunctionName(std::string function_name)
Definition: MHO_PyGenericOperator.hh:58
void SetModuleName(std::string module_name)
Definition: MHO_PyGenericOperator.hh:56
void SetFringeData(MHO_FringeData *fdata)
Definition: MHO_PyGenericOperator.hh:50
Definition: MHO_PythonOperatorBuilder.hh:19
virtual ~MHO_PythonOperatorBuilder()
Definition: MHO_PythonOperatorBuilder.hh:28
virtual bool Build() override
Builds the object and passes it to toolbox if successful, otherwise returns false.
Definition: MHO_PythonOperatorBuilder.hh:30
MHO_PythonOperatorBuilder(MHO_OperatorToolbox *toolbox, MHO_FringeData *fdata)
Definition: MHO_PythonOperatorBuilder.hh:21
MHO_PythonOperatorBuilder(MHO_OperatorToolbox *toolbox, MHO_ContainerStore *cstore=nullptr, MHO_ParameterStore *pstore=nullptr)
Definition: MHO_PythonOperatorBuilder.hh:24
Definition: MHO_ChannelLabeler.hh:17