A generic data reader based on Boost/Serialization.
More...
#include <bayeux/datatools/io_factory.h>
|
template<typename Data > |
void | basic_load (Data &data_) |
|
A generic data reader based on Boost/Serialization.
The data_reader class supports :
- portable text (ASCII) archives
- portable XML archives
- portable binary archives
Example :
{
if (reader.has_record_tag () &&
reader.record_tag_is (datatools::properties::SERIAL_TAG))
{
reader.load (setup);
}
return 0;
}
◆ status_type
Enumerator |
---|
STATUS_OK | |
STATUS_ERROR | |
STATUS_EOF | |
◆ data_reader() [1/3]
datatools::data_reader::data_reader |
( |
| ) |
|
◆ data_reader() [2/3]
datatools::data_reader::data_reader |
( |
const std::string & |
filename_, |
|
|
bool |
use_multiple_archives_ = using_single_archive |
|
) |
| |
◆ data_reader() [3/3]
datatools::data_reader::data_reader |
( |
const std::string & |
filename_, |
|
|
int |
mode_ |
|
) |
| |
◆ ~data_reader()
virtual datatools::data_reader::~data_reader |
( |
| ) |
|
|
virtual |
◆ basic_load()
template<typename Data >
void datatools::data_reader::basic_load |
( |
Data & |
data_ | ) |
|
|
inlineprotected |
◆ dump()
void datatools::data_reader::dump |
( |
std::ostream & |
out_ = std::clog | ) |
const |
◆ empty_record_tag()
static const std::string& datatools::data_reader::empty_record_tag |
( |
| ) |
|
|
static |
◆ get_record_tag()
const std::string& datatools::data_reader::get_record_tag |
( |
| ) |
const |
◆ has_record_tag()
bool datatools::data_reader::has_record_tag |
( |
| ) |
const |
◆ init() [1/2]
void datatools::data_reader::init |
( |
const std::string & |
filename_, |
|
|
bool |
use_multiple_archives_ = using_single_archive |
|
) |
| |
◆ init() [2/2]
void datatools::data_reader::init |
( |
const std::string & |
filename_, |
|
|
int |
mode_ |
|
) |
| |
◆ init_multi()
void datatools::data_reader::init_multi |
( |
const std::string & |
filename_ | ) |
|
|
inline |
◆ init_single()
void datatools::data_reader::init_single |
( |
const std::string & |
filename_ | ) |
|
|
inline |
◆ is_binary()
bool datatools::data_reader::is_binary |
( |
| ) |
const |
◆ is_bzip2()
bool datatools::data_reader::is_bzip2 |
( |
| ) |
const |
◆ is_compressed()
bool datatools::data_reader::is_compressed |
( |
| ) |
const |
◆ is_eof()
bool datatools::data_reader::is_eof |
( |
| ) |
const |
◆ is_error()
bool datatools::data_reader::is_error |
( |
| ) |
const |
◆ is_gzip()
bool datatools::data_reader::is_gzip |
( |
| ) |
const |
◆ is_initialized()
bool datatools::data_reader::is_initialized |
( |
| ) |
const |
◆ is_multi_archives()
bool datatools::data_reader::is_multi_archives |
( |
| ) |
const |
◆ is_portable_binary()
bool datatools::data_reader::is_portable_binary |
( |
| ) |
const |
◆ is_single_archive()
bool datatools::data_reader::is_single_archive |
( |
| ) |
const |
◆ is_text()
bool datatools::data_reader::is_text |
( |
| ) |
const |
◆ is_uncompressed()
bool datatools::data_reader::is_uncompressed |
( |
| ) |
const |
◆ is_xml()
bool datatools::data_reader::is_xml |
( |
| ) |
const |
◆ load() [1/2]
template<typename Data >
void datatools::data_reader::load |
( |
const std::string & |
tag_, |
|
|
Data & |
data_ |
|
) |
| |
|
inline |
◆ load() [2/2]
template<typename Data >
void datatools::data_reader::load |
( |
Data & |
data_ | ) |
|
|
inline |
◆ load_alt()
template<typename Data >
void datatools::data_reader::load_alt |
( |
const std::string & |
tag_, |
|
|
const std::string & |
alt_tag_, |
|
|
Data & |
data_ |
|
) |
| |
|
inline |
◆ load_serializable() [1/2]
template<typename Data >
void datatools::data_reader::load_serializable |
( |
Data & |
data_, |
|
|
typename boost::disable_if< has_bsts< Data > >::type * |
dummy_ = 0 |
|
) |
| |
|
inline |
◆ load_serializable() [2/2]
template<typename Data >
void datatools::data_reader::load_serializable |
( |
Data & |
data_, |
|
|
typename boost::enable_if< has_bsts< Data > >::type * |
dummy_ = 0 |
|
) |
| |
|
inline |
◆ record_tag_is()
bool datatools::data_reader::record_tag_is |
( |
const std::string & |
tag_ | ) |
const |
◆ reset()
void datatools::data_reader::reset |
( |
| ) |
|
The documentation for this class was generated from the following file: