15 #define BRIO_READER_H 1 25 #include <boost/iostreams/stream.hpp> 26 #include <boost/iostreams/device/array.hpp> 30 #pragma clang diagnostic push 31 #pragma clang diagnostic ignored "-Wunused-parameter" 33 #include <boost/archive/text_iarchive.hpp> 35 #pragma clang diagnostic pop 57 reader(
const std::string & filename_,
61 reader(
const std::string & filename_,
62 const std::string & format_str_,
93 bool has_previous(
const std::string & label_ =
"")
const;
97 bool has_next(
const std::string & label_ =
"")
const;
101 int load_next(T & data_,
const std::string & label_ =
"");
105 int load_previous(T & data_,
const std::string & label_ =
"");
109 int load(T & data_, int64_t nentry_ = -1);
113 int load(T & data_,
const std::string & label_, int64_t nentry_ = -1);
116 virtual void tree_dump(std::ostream & out_ = std::clog,
117 const std::string & title_ =
"",
118 const std::string & indent_ =
"",
119 bool inherit_ =
false)
const;
122 void print_info(std::ostream& out_ = std::clog)
const;
125 virtual void _at_open(
const std::string & filename_);
136 const store_info * get_store_or_throw(
const std::string & label_)
const;
137 store_info * get_store_or_throw(
const std::string & label_);
140 bool _allow_mixed_types_in_stores_;
141 bool _allow_automatic_store_;
142 bool _check_serial_tag_;
150 #endif // BRIO_READER_H The brio generic reader class.
Definition: reader.h:49
void set_check_serial_tag(bool new_value_=true)
void rewind_store(const std::string &label_="")
reader()
Default constructor.
A class that contains internal dynamic informations for a given store.
Definition: utils.h:33
int load(T &data_, int64_t nentry_=-1)
Load template method for arbitrary entry.
Definition: reader-inl.h:53
virtual ~reader()
Destructor.
The internal I/O base class.
Definition: base_io.h:43
Utility macros for exception handling.
int load_next(T &data_, const std::string &label_="")
Load template method for next entry.
Definition: reader-inl.h:39
void unwind_store(const std::string &label_="")
int _at_load(T &data_, store_info *ptr_si_, int64_t nentry_)
Definition: reader-inl.h:80
Definitions of brio::reader template functions.
int load_previous(T &data_, const std::string &label_="")
Load template method for previous entry.
Definition: reader-inl.h:46
bool has_previous(const std::string &label_="") const
Utilities for logging information.
virtual void _at_open(const std::string &filename_)
bool has_next(const std::string &label_="") const
bool is_check_serial_tag() const
void print_info(std::ostream &out_=std::clog) const
Print.
Top-level namespace of the Bayeux/brio module library.
Definition: base_io.h:37
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.