30 #ifndef DPP_I_DATA_SOURCE_H 31 #define DPP_I_DATA_SOURCE_H 1 39 #include <boost/cstdint.hpp> 82 virtual void set(
const std::string & source_label_);
84 virtual void open() = 0;
103 virtual void close() = 0;
105 virtual void reset() = 0;
140 #endif // DPP_I_DATA_SOURCE_H static const int STATUS_CLOSED
Definition: i_data_source.h:59
virtual bool load_record(datatools::things &event_record_, int64_t entry_)
virtual void set(const std::string &source_label_)
Top-level namespace of the Bayeux/dpp module library.
Definition: base_module.h:56
virtual bool is_open() const
virtual int64_t get_number_of_metadata() const =0
datatools::logger::priority _logging
The logging priority.
Definition: i_data_source.h:132
virtual bool has_next_record()=0
std::string label
Definition: i_data_source.h:61
i_data_source(datatools::logger::priority priority_=datatools::logger::PRIO_ERROR)
Constructor.
int status
Definition: i_data_source.h:63
virtual int64_t get_number_of_entries() const
source_record _source_record
Record dynamic informations about the data source.
Definition: i_data_source.h:134
virtual int64_t _get_number_of_entries() const
virtual bool load_metadata(datatools::properties &metadata_, int64_t entry_)=0
virtual ~i_data_source()
Destructor:
bool _has_next_record
Next record flag.
Definition: i_data_source.h:133
std::string effective_label
Definition: i_data_source.h:62
static const int64_t UNKNOWN_NUMBER_OF_ENTRIES
Definition: i_data_source.h:54
virtual bool is_random() const
Data source/reader abstract interface.
Definition: i_data_source.h:50
virtual bool is_sequential() const
void set_logging_priority(datatools::logger::priority p_)
Set logging priority.
bool processed
Definition: i_data_source.h:64
Internal class of the i_data_source interface class.
Definition: i_data_source.h:57
virtual bool can_load_record(int64_t entry_)
virtual bool has_number_of_entries() const
virtual void _check_next_record()=0
void _set_defaults(datatools::logger::priority priority_)
virtual bool load_next_record(datatools::things &event_record_)=0
datatools::logger::priority get_logging_priority() const
Returns logging priority.
source_record(const std::string &label_="")
static const int STATUS_OPENED
Definition: i_data_source.h:60
virtual bool _load_record(datatools::things &event_record_, int64_t entry_)