29 #ifndef DPP_IF_MODULE_H 30 #define DPP_IF_MODULE_H 1 97 virtual void initialize(const ::datatools::properties & ,
102 virtual void reset();
108 virtual void tree_dump (std::ostream & out_ = std::clog,
109 const std::string & title_ =
"",
110 const std::string & indent_ =
"",
111 bool inherit_ =
false)
const;
120 std::string _cut_service_label_;
134 #endif // DPP_IF_MODULE_H std::string label
Module label.
Definition: if_module.h:58
void set_condition_cut(const std::string &label_, const cuts::cut_handle_type &condition_cut_)
virtual process_status process(::datatools::things &)
Data record processing.
Top-level namespace of the Bayeux/dpp module library.
Definition: base_module.h:56
static const std::string & default_cut_service_label()
Return the default label of an external cut service.
process_status
Processing status flags used as the returned value of data processing methods through the pipeline.
Definition: base_module.h:65
if_module(datatools::logger::priority=datatools::logger::PRIO_FATAL)
Constructor.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
void set_cut_service_label(const std::string &label_)
Set the label of the external cut service.
Internal module record entry.
Definition: if_module.h:57
void set_then_module(const module_entry &then_module_)
void _set_defaults()
Set default values before explicit settings and initialization.
bool has_else_status() const
void set_then_status(process_status status_)
void set_else_module(const module_entry &else_module_)
module_handle_type handle
Module handle.
Definition: if_module.h:59
std::map< std::string, module_entry_type > module_handle_dict_type
Definition: module_tools.h:141
Base processing module (abstract interface)
Definition: base_module.h:59
#define DPP_MODULE_REGISTRATION_INTERFACE(T)
Definition: base_module.h:231
cuts::cut_handle_type handle
Cut handle.
Definition: if_module.h:53
void set_else_status(process_status status_)
std::string label
Cut label.
Definition: if_module.h:52
virtual ~if_module()
Destructor.
bool has_then_status() const
Cut record entry.
Definition: if_module.h:51
const std::string & get_cut_service_label() const
Return the label of the external cut service.
virtual void initialize(const ::datatools::properties &, datatools::service_manager &, dpp::module_handle_dict_type &)
Initialization.
bool has_then_module() const
A data processing module to be apply only if some cut is fulfilled.
Definition: if_module.h:45
virtual void reset()
Reset.
bool has_else_module() const