14 #ifndef BRIO_DETAIL_BASE_IO_H 15 #define BRIO_DETAIL_BASE_IO_H 1 24 #include <boost/math/special_functions/nonfinite_num_facets.hpp> 73 virtual void open(
const std::string & filename_);
92 void set_format(
const std::string & format_str_);
94 static int get_format (
const std::string & format_str_);
110 bool has_store(
const std::string & label_)
const;
113 const std::string & serial_tag_)
const;
130 virtual void tree_dump(std::ostream & out_ = std::clog,
131 const std::string & title_ =
"",
132 const std::string & indent_ =
"",
133 bool inherit_ =
false)
const;
142 virtual void _at_open(
const std::string & filename_) = 0;
172 store_info_dict_type::const_iterator found =
_store_infos.find(label_);
185 #endif // BRIO_DETAIL_BASE_IO_H
void set_logging_priority(datatools::logger::priority)
store_info * _get_store_info(const std::string &label_="")
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Main old interface method for printing.
const std::string & get_serialization_tag() const
int _rw
Read/write mode tag.
Definition: base_io.h:157
virtual void close()
File close.
A class that contains internal dynamic informations for a given store.
Definition: utils.h:33
bool has_automatic_store() const
store_info_dict_type _store_infos
Dictionnary of stores.
Definition: base_io.h:155
datatools::logger::priority get_logging_priority() const
Boost portable binary archive (file extension: .brio)
Definition: base_io.h:53
The internal I/O base class.
Definition: base_io.h:43
std::locale * _default_locale
Default I/O locale (for portable streams)
Definition: base_io.h:158
virtual bool is_opened() const
store_info * _current_store
Handle to the current active store (if any)
Definition: base_io.h:156
std::map< std::string, store_info > store_info_dict_type
Definition: utils.h:87
bool has_mixed_store(const std::string &label_) const
bool has_store_with_serial_tag(const std::string &label_, const std::string &serial_tag_) const
void select_automatic_store()
static const std::string & text_label()
Label for Boost portable binary archive.
bool has_store_with_matching_serial_tag(const std::string &label_) const
Definition: base_io.h:170
bool is_format_pba() const
rw_type
Definition: base_io.h:56
const std::string & get_serialization_tag(const std::string &label_="") const
void select_store(const std::string &label_)
void set_format(int format_)
bool has_dedicated_serialization_tag() const
bool has_store(const std::string &label_) const
Reader mode.
Definition: base_io.h:59
std::string _filename
Name of the current I/O file (extensions are .brio or .trio)
Definition: base_io.h:153
Utilities for logging information.
static const std::string & pba_label()
format_type
Label for Boost portable text archive.
Definition: base_io.h:50
virtual void _at_open(const std::string &filename_)=0
void get_list_of_stores(std::list< std::string > &list_) const
virtual void open(const std::string &filename_)
File open.
std::locale * _locale
I/O locale (for portable streams)
Definition: base_io.h:159
TFile * _file
Handle to the current embedded ROOT file.
Definition: base_io.h:154
int64_t get_number_of_entries(const std::string &label_="") const
int64_t get_current_entry(const std::string &label_="") const
bool is_format_text() const
Top-level namespace of the Bayeux/brio module library.
Definition: base_io.h:37