29 #ifndef DPP_DUMP_MODULE_H 30 #define DPP_DUMP_MODULE_H 1 34 #include <boost/scoped_ptr.hpp> 59 void set_title(
const std::string & title_);
66 const std::string & file_ =
"");
75 virtual void initialize(const ::datatools::properties & ,
86 virtual void tree_dump (std::ostream & out_ = std::clog,
87 const std::string & title_ =
"",
88 const std::string & indent_ =
"",
89 bool inherit_ =
false)
const;
101 std::string _indent_;
104 std::string _output_filename_;
105 boost::scoped_ptr<std::ofstream > _fout_;
106 std::ostream * _out_;
115 #endif // DPP_DUMP_MODULE_H
A data processing module to dump data records.
Definition: dump_module.h:42
virtual process_status process(::datatools::things &)
Data record processing.
Definition: dump_module.h:49
Top-level namespace of the Bayeux/dpp module library.
Definition: base_module.h:56
Definition: dump_module.h:53
virtual ~dump_module()
Destructor.
process_status
Processing status flags used as the returned value of data processing methods through the pipeline.
Definition: base_module.h:65
void set_title(const std::string &title_)
Set the title:
std::ostream & _grab_output()
Get a reference to the output stream.
void set_output(const std::string &output_, const std::string &file_="")
virtual void reset()
Reset.
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
Definition: dump_module.h:51
Definition: dump_module.h:52
#define DPP_MODULE_REGISTRATION_INTERFACE(T)
Definition: base_module.h:231
output_type
Definition: dump_module.h:47
dump_module(datatools::logger::priority=datatools::logger::PRIO_FATAL)
Constructor.
void set_indent(const std::string &indent_)
Set the indenting string:
void _set_defaults()
Set default values before explicit settings and initialization.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print :
Definition: dump_module.h:50
virtual void initialize(const ::datatools::properties &, datatools::service_manager &, dpp::module_handle_dict_type &)
Initialization.