31 #ifndef DPP_CONTEXT_SERVICE_H 32 #define DPP_CONTEXT_SERVICE_H 1 47 class multi_properties;
87 virtual void tree_dump(std::ostream & out_ = std::clog,
88 const std::string & title_ =
"",
89 const std::string & indent_ =
"",
90 bool inherit_ =
false)
const;
98 std::string _load_filename_;
99 std::string _store_filename_;
100 std::string _backup_filename_;
112 #endif // DPP_CONTEXT_SERVICE_H virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
virtual int initialize(const datatools::properties &config_, datatools::service_dict_type &service_dict_)
Initialize.
const datatools::multi_properties & get_store() const
Return a const reference to the internal store.
virtual int reset()
Reset.
Top-level namespace of the Bayeux/dpp module library.
Definition: base_module.h:56
A service that handles a context object store implemented as a datatools::multi_properties container.
Definition: context_service.h:53
virtual ~context_service()
Destructor.
context_service()
Default constructor.
#define DATATOOLS_SERVICE_REGISTRATION_INTERFACE(SERVICE_CLASS_NAME)
Definition: base_service.h:152
const datatools::multi_properties & operator()() const
Return a const reference to the internal store.
datatools::multi_properties & grab_store()
Return a mutable reference to the internal store.
virtual bool is_initialized() const
Check initialization.