Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
ASCII I/O utility for variant repository and registries. More...
#include <bayeux/datatools/configuration/io.h>
Public Types | |
enum | store_flags { IO_DESCRIPTION = datatools::bit_mask::bit00, IO_TITLE = datatools::bit_mask::bit01, IO_TRACE = datatools::bit_mask::bit02, IO_NO_HEADER = datatools::bit_mask::bit03, IO_DONT_IGNORE_UNKNOWN_REGISTRY = datatools::bit_mask::bit04, IO_DEFAULT = 0 } |
Special initialization flags for the ASCII I/O utility. More... | |
Public Member Functions | |
ascii_io (uint32_t flags_=IO_DEFAULT) | |
Default constructor. More... | |
void | store_record (std::ostream &out_, const variant_record &vrec_) const |
Store a variant registry record. More... | |
int | load_record (std::istream &in_, variant_record &vrec_) const |
Load a variant registry record. More... | |
void | store_registry (std::ostream &out_, const variant_registry &vreg_) const |
Store a variant registry. More... | |
int | load_registry (std::istream &in_, variant_registry &vreg_) const |
Load a variant registry. More... | |
void | store_repository (std::ostream &out_, const variant_repository &vrep_) const |
Store a variant repository. More... | |
int | load_repository (std::istream &in_, variant_repository &vrep_) const |
Load a variant repository. More... | |
logger::priority | get_logging () const |
Return the logging priority. More... | |
void | set_logging (logger::priority) |
Set the logging priority. More... | |
void | print (std::ostream &out_, const std::string &title_="") const |
Print. More... | |
Static Public Member Functions | |
static const std::string & | unset_label () |
Return unset parameter label. More... | |
static const std::string & | error_label () |
Return error parameter label. More... | |
static const std::string & | format_label () |
Return format label. More... | |
static version_id | current_format_version_id () |
Return the current format version identifier. More... | |
ASCII I/O utility for variant repository and registries.
|
explicit |
Default constructor.
|
static |
Return the current format version identifier.
|
static |
Return error parameter label.
|
static |
Return format label.
logger::priority datatools::configuration::ascii_io::get_logging | ( | ) | const |
Return the logging priority.
int datatools::configuration::ascii_io::load_record | ( | std::istream & | in_, |
variant_record & | vrec_ | ||
) | const |
Load a variant registry record.
int datatools::configuration::ascii_io::load_registry | ( | std::istream & | in_, |
variant_registry & | vreg_ | ||
) | const |
Load a variant registry.
int datatools::configuration::ascii_io::load_repository | ( | std::istream & | in_, |
variant_repository & | vrep_ | ||
) | const |
Load a variant repository.
void datatools::configuration::ascii_io::print | ( | std::ostream & | out_, |
const std::string & | title_ = "" |
||
) | const |
Print.
void datatools::configuration::ascii_io::set_logging | ( | logger::priority | ) |
Set the logging priority.
void datatools::configuration::ascii_io::store_record | ( | std::ostream & | out_, |
const variant_record & | vrec_ | ||
) | const |
Store a variant registry record.
void datatools::configuration::ascii_io::store_registry | ( | std::ostream & | out_, |
const variant_registry & | vreg_ | ||
) | const |
Store a variant registry.
void datatools::configuration::ascii_io::store_repository | ( | std::ostream & | out_, |
const variant_repository & | vrep_ | ||
) | const |
Store a variant repository.
|
static |
Return unset parameter label.