Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Protected Member Functions | List of all members
dpp::simple_data_source Class Reference

A Boost/Serialization-based I/O data source/reader. More...

#include <bayeux/dpp/simple_data_source.h>

Inheritance diagram for dpp::simple_data_source:
dpp::i_data_source

Public Member Functions

virtual void open ()
 
virtual bool has_next_record ()
 
virtual bool load_next_record (datatools::things &a_event_record_)
 
virtual int64_t get_number_of_metadata () const
 
virtual bool load_metadata (datatools::properties &a_metadata_, int64_t a_entry_)
 
virtual void close ()
 
virtual void reset ()
 
 simple_data_source (datatools::logger::priority a_priority_=datatools::logger::PRIO_NOTICE)
 
 simple_data_source (const std::string &a_source_label_, datatools::logger::priority a_priority_=datatools::logger::PRIO_NOTICE)
 
virtual ~simple_data_source ()
 
- Public Member Functions inherited from dpp::i_data_source
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 bool can_load_record (int64_t entry_)
 
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_)
 
 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...
 

Protected Member Functions

virtual void _open_file_source ()
 
virtual void _close_file_source ()
 
virtual void _check_next_record ()
 
- Protected Member Functions inherited from dpp::i_data_source
void _set_defaults (datatools::logger::priority priority_)
 
virtual bool _load_record (datatools::things &event_record_, int64_t entry_)
 
virtual int64_t _get_number_of_entries () const
 

Additional Inherited Members

- Static Public Attributes inherited from dpp::i_data_source
static const int64_t UNKNOWN_NUMBER_OF_ENTRIES = -1
 
- Protected Attributes inherited from dpp::i_data_source
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...
 

Detailed Description

A Boost/Serialization-based I/O data source/reader.

Constructor & Destructor Documentation

◆ simple_data_source() [1/2]

dpp::simple_data_source::simple_data_source ( datatools::logger::priority  a_priority_ = datatools::logger::PRIO_NOTICE)

◆ simple_data_source() [2/2]

dpp::simple_data_source::simple_data_source ( const std::string &  a_source_label_,
datatools::logger::priority  a_priority_ = datatools::logger::PRIO_NOTICE 
)

◆ ~simple_data_source()

virtual dpp::simple_data_source::~simple_data_source ( )
virtual

Member Function Documentation

◆ _check_next_record()

virtual void dpp::simple_data_source::_check_next_record ( )
protectedvirtual

Implements dpp::i_data_source.

◆ _close_file_source()

virtual void dpp::simple_data_source::_close_file_source ( )
protectedvirtual

◆ _open_file_source()

virtual void dpp::simple_data_source::_open_file_source ( )
protectedvirtual

◆ close()

virtual void dpp::simple_data_source::close ( )
virtual

Implements dpp::i_data_source.

◆ get_number_of_metadata()

virtual int64_t dpp::simple_data_source::get_number_of_metadata ( ) const
virtual

Implements dpp::i_data_source.

◆ has_next_record()

virtual bool dpp::simple_data_source::has_next_record ( )
virtual

Implements dpp::i_data_source.

◆ load_metadata()

virtual bool dpp::simple_data_source::load_metadata ( datatools::properties a_metadata_,
int64_t  a_entry_ 
)
virtual

Implements dpp::i_data_source.

◆ load_next_record()

virtual bool dpp::simple_data_source::load_next_record ( datatools::things a_event_record_)
virtual

Implements dpp::i_data_source.

◆ open()

virtual void dpp::simple_data_source::open ( )
virtual

Implements dpp::i_data_source.

◆ reset()

virtual void dpp::simple_data_source::reset ( )
virtual

Implements dpp::i_data_source.


The documentation for this class was generated from the following file: