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

A generic data writer based on Boost/Serialization. More...

#include <bayeux/datatools/io_factory.h>

Public Member Functions

 data_writer ()
 Default constructor. More...
 
 data_writer (const std::string &filename_, int mode_)
 Constructor. More...
 
 data_writer (const std::string &filename_, bool use_multiple_archives_=using_single_archive, bool append_mode_=no_append_mode)
 Constructor. More...
 
virtual ~data_writer ()
 Destructor. More...
 
bool is_initialized () const
 
bool is_multi_archives () const
 
bool is_single_archive () const
 
bool is_compressed () const
 
bool is_uncompressed () const
 
bool is_gzip () const
 
bool is_bzip2 () const
 
bool is_text () const
 
bool is_binary () const
 
bool is_portable_binary () const
 
bool is_xml () const
 
void reset ()
 
void init (const std::string &filename_, bool a_multiple_archives_=using_single_archive, bool a_append_mode_=no_append_mode)
 
void init_multi (const std::string &filename_)
 
void init_single (const std::string &filename_)
 
void init (const std::string &filename_, int mode_)
 
template<typename Data >
void store (const std::string &tag_, const Data &data_)
 
template<typename Data >
void store (const Data &data_)
 

Protected Member Functions

template<typename Data >
void basic_store (const Data &data_)
 

Detailed Description

A generic data writer based on Boost/Serialization.

The data_reader class supports :

Constructor & Destructor Documentation

◆ data_writer() [1/3]

datatools::data_writer::data_writer ( )

Default constructor.

◆ data_writer() [2/3]

datatools::data_writer::data_writer ( const std::string &  filename_,
int  mode_ 
)

Constructor.

◆ data_writer() [3/3]

datatools::data_writer::data_writer ( const std::string &  filename_,
bool  use_multiple_archives_ = using_single_archive,
bool  append_mode_ = no_append_mode 
)

Constructor.

◆ ~data_writer()

virtual datatools::data_writer::~data_writer ( )
virtual

Destructor.

Member Function Documentation

◆ basic_store()

template<typename Data >
void datatools::data_writer::basic_store ( const Data &  data_)
inlineprotected

◆ init() [1/2]

void datatools::data_writer::init ( const std::string &  filename_,
bool  a_multiple_archives_ = using_single_archive,
bool  a_append_mode_ = no_append_mode 
)

◆ init() [2/2]

void datatools::data_writer::init ( const std::string &  filename_,
int  mode_ 
)

◆ init_multi()

void datatools::data_writer::init_multi ( const std::string &  filename_)

◆ init_single()

void datatools::data_writer::init_single ( const std::string &  filename_)

◆ is_binary()

bool datatools::data_writer::is_binary ( ) const

◆ is_bzip2()

bool datatools::data_writer::is_bzip2 ( ) const

◆ is_compressed()

bool datatools::data_writer::is_compressed ( ) const

◆ is_gzip()

bool datatools::data_writer::is_gzip ( ) const

◆ is_initialized()

bool datatools::data_writer::is_initialized ( ) const

◆ is_multi_archives()

bool datatools::data_writer::is_multi_archives ( ) const

◆ is_portable_binary()

bool datatools::data_writer::is_portable_binary ( ) const

◆ is_single_archive()

bool datatools::data_writer::is_single_archive ( ) const

◆ is_text()

bool datatools::data_writer::is_text ( ) const

◆ is_uncompressed()

bool datatools::data_writer::is_uncompressed ( ) const

◆ is_xml()

bool datatools::data_writer::is_xml ( ) const

◆ reset()

void datatools::data_writer::reset ( )

◆ store() [1/2]

template<typename Data >
void datatools::data_writer::store ( const std::string &  tag_,
const Data &  data_ 
)
inline

◆ store() [2/2]

template<typename Data >
void datatools::data_writer::store ( const Data &  data_)
inline

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