31 #ifndef CUTS_CUT_TOOLS_H 32 #define CUTS_CUT_TOOLS_H 1 42 #include <boost/scoped_ptr.hpp> 52 class service_manager;
156 virtual void tree_dump(std::ostream & out_ = std::clog,
157 const std::string & title_ =
"",
158 const std::string & indent_ =
"",
159 bool inherit_ =
false)
const;
163 std::string _cut_name_;
164 std::string _cut_id_;
166 uint32_t _cut_status_;
182 #endif // CUTS_CUT_TOOLS_H void set_cut_config(const datatools::properties &)
Set the cut configuration.
void set_manager(cut_manager &)
Set the cut manager address.
const datatools::properties & get_cut_config() const
Return non mutable cut configuration.
void set_ptr(i_cut *)
Set the address of the embedded.
status_type
Status of the cut entry.
Definition: cut_tools.h:80
bool has_cut() const
Check is the cut is referenced in the embedded handle.
const i_cut & get_cut() const
Return a non mutable reference to the cut.
cut_entry_type()
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_initialized()
Set the 'initialization' flag.
Returned by the selection method when some criteria is passed.
Definition: cut_tools.h:61
The cut abstract base class (interface)
Definition: i_cut.h:62
cut_handle_type & grab_cut_handle()
Return a mutable handle to the cut.
Returned by the selection method when applying some criteria makes no sense in the current context.
Definition: cut_tools.h:59
void set_created()
Set the 'creation' flag.
const std::string & get_cut_name() const
Return the cut name.
const std::string & get_cut_id() const
Return the cut class identifier.
Top-level namespace of the Bayeux/cuts module library.
Definition: accept_cut.h:21
cut_handle_type & grab_initialized_cut_handle()
Return a mutable handle to the initialized cut.
Definition: cut_tools.h:81
bool has_manager() const
Check the availability of a cut manager.
Returned by the selection method when some criteria is not passed.
Definition: cut_tools.h:60
Definition: cut_tools.h:83
void set_blank()
Set the blank flag.
The cut manager class.
Definition: cut_manager.h:59
datatools::handle< i_cut > cut_handle_type
Alias type for a cut handle.
Definition: cut_tools.h:66
const cut_handle_type & get_cut_handle() const
Return a non mutable handle to the cut.
void set_cut_name(const std::string &)
Set the cut name.
Definition: cut_tools.h:82
std::vector< std::string > ordered_cut_list_type
Alias type of an array of cut names.
Definition: cut_tools.h:178
Internal record that handles a dynamically allocated cut.
Definition: cut_tools.h:75
void set_cut_id(const std::string &)
Set the cut class identifier.
selection_result_type
Enumeration of cut selection return status.
Definition: cut_tools.h:58
bool is_initialized() const
Check the 'initialization' flag.
i_cut & grab_cut()
Return a mutable reference to the cut.
std::map< std::string, cut_entry_type > cut_handle_dict_type
Alias type of a dictionary of cut entry.
Definition: cut_tools.h:175
void set_uninitialized()
Unset the 'initialization' flag.
bool is_created() const
Check the 'creation' flag.
datatools::properties & grab_cut_config()
Return mutable cut configuration.