Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Data source/reader abstract interface. More...
#include <bayeux/dpp/i_data_source.h>
Classes | |
struct | source_record |
Internal class of the i_data_source interface class. More... | |
Public Member Functions | |
void | set_logging_priority (datatools::logger::priority p_) |
Set logging priority. More... | |
datatools::logger::priority | get_logging_priority () const |
Returns logging priority. More... | |
virtual bool | is_open () const |
virtual bool | is_sequential () const |
virtual bool | is_random () const |
virtual void | set (const std::string &source_label_) |
virtual void | open ()=0 |
virtual bool | can_load_record (int64_t entry_) |
virtual bool | has_next_record ()=0 |
virtual bool | load_next_record (datatools::things &event_record_)=0 |
virtual bool | has_number_of_entries () const |
virtual int64_t | get_number_of_entries () const |
virtual bool | load_record (datatools::things &event_record_, int64_t entry_) |
virtual int64_t | get_number_of_metadata () const =0 |
virtual bool | load_metadata (datatools::properties &metadata_, int64_t entry_)=0 |
virtual void | close ()=0 |
virtual void | reset ()=0 |
i_data_source (datatools::logger::priority priority_=datatools::logger::PRIO_ERROR) | |
Constructor. More... | |
i_data_source (const std::string &source_label_, datatools::logger::priority priority_=datatools::logger::PRIO_ERROR) | |
Constructor. More... | |
virtual | ~i_data_source () |
Destructor: More... | |
Static Public Attributes | |
static const int64_t | UNKNOWN_NUMBER_OF_ENTRIES = -1 |
Protected Member Functions | |
void | _set_defaults (datatools::logger::priority priority_) |
virtual void | _check_next_record ()=0 |
virtual bool | _load_record (datatools::things &event_record_, int64_t entry_) |
virtual int64_t | _get_number_of_entries () const |
Protected Attributes | |
datatools::logger::priority | _logging |
The logging priority. More... | |
bool | _has_next_record |
Next record flag. More... | |
source_record | _source_record |
Record dynamic informations about the data source. More... | |
Data source/reader abstract interface.
dpp::i_data_source::i_data_source | ( | datatools::logger::priority | priority_ = datatools::logger::PRIO_ERROR | ) |
Constructor.
dpp::i_data_source::i_data_source | ( | const std::string & | source_label_, |
datatools::logger::priority | priority_ = datatools::logger::PRIO_ERROR |
||
) |
Constructor.
|
virtual |
Destructor:
|
protectedpure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
protectedvirtual |
Reimplemented in dpp::simple_brio_data_source.
|
protectedvirtual |
Reimplemented in dpp::simple_brio_data_source.
|
protected |
|
virtual |
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
datatools::logger::priority dpp::i_data_source::get_logging_priority | ( | ) | const |
Returns logging priority.
|
virtual |
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in dpp::simple_brio_data_source.
|
virtual |
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
virtual |
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
pure virtual |
Implemented in dpp::simple_data_source, and dpp::simple_brio_data_source.
|
virtual |
void dpp::i_data_source::set_logging_priority | ( | datatools::logger::priority | p_ | ) |
Set logging priority.
|
protected |
Next record flag.
|
protected |
The logging priority.
|
protected |
Record dynamic informations about the data source.
|
static |