![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Reader/writer class for multi_properties objects. More...
#include <bayeux/datatools/multi_properties.h>
Public Types | |
| enum | options_flag { SKIP_PRIVATE_SECTIONS = bit_mask::bit00, FORBID_VARIANTS = bit_mask::bit01, LOG_MUTE = bit_mask::bit02, LOG_DEBUG = bit_mask::bit03, LOG_TRACE = bit_mask::bit04, SKIP_PRIVATE_PROPS = bit_mask::bit05, HEADER_FOOTER = bit_mask::bit06, DONT_CLEAR = bit_mask::bit07, REQUESTED_TOPIC = bit_mask::bit08, RESOLVE_PATH = bit_mask::bit09, START_WITHOUT_LABELS = bit_mask::bit10, WITHOUT_DECORATION = bit_mask::bit11 } |
Public Member Functions | |
| config (uint32_t options_=0, const std::string &topic_="") | |
| Default constructor. More... | |
| datatools::logger::priority | get_logging () const |
| Return the logging priority threshold. More... | |
| void | set_logging (datatools::logger::priority) |
| Set the logging priority threshold. More... | |
| void | reset () |
| Reset the reader/writer. More... | |
| void | read (const std::string &filename, multi_properties &target_) |
| Read from an input file. More... | |
| void | read (std::istream &in_, multi_properties &target_) |
| Read from an input stream. More... | |
| void | write (std::ostream &out_, const multi_properties &source_) |
| Write to an output stream. More... | |
| void | write (const std::string &filename_, const multi_properties &source_) |
| Write to an output file. More... | |
| bool | has_topic () const |
| Check if topic is set. More... | |
| void | set_topic (const std::string &topic_) |
| Set the topic that should be matched. More... | |
| const std::string & | get_topic () const |
| Return the topic. More... | |
Protected Member Functions | |
| void | _init_defaults () |
| Default initialization. More... | |
| void | _read (std::istream &in_, multi_properties &target_) |
| Read from an input stream. More... | |
| void | _write (std::ostream &out_, const multi_properties &target_) |
| Write to an output stream. More... | |
| void | _set_current_filename (const std::string &filename_) |
| Store the current filename. More... | |
Reader/writer class for multi_properties objects.
| datatools::multi_properties::config::config | ( | uint32_t | options_ = 0, |
| const std::string & | topic_ = "" |
||
| ) |
Default constructor.
|
protected |
Default initialization.
|
protected |
Read from an input stream.
|
protected |
Store the current filename.
|
protected |
Write to an output stream.
| datatools::logger::priority datatools::multi_properties::config::get_logging | ( | ) | const |
Return the logging priority threshold.
| const std::string& datatools::multi_properties::config::get_topic | ( | ) | const |
Return the topic.
| bool datatools::multi_properties::config::has_topic | ( | ) | const |
Check if topic is set.
| void datatools::multi_properties::config::read | ( | const std::string & | filename, |
| multi_properties & | target_ | ||
| ) |
Read from an input file.
| void datatools::multi_properties::config::read | ( | std::istream & | in_, |
| multi_properties & | target_ | ||
| ) |
Read from an input stream.
| void datatools::multi_properties::config::reset | ( | ) |
Reset the reader/writer.
| void datatools::multi_properties::config::set_logging | ( | datatools::logger::priority | ) |
Set the logging priority threshold.
| void datatools::multi_properties::config::set_topic | ( | const std::string & | topic_ | ) |
Set the topic that should be matched.
| void datatools::multi_properties::config::write | ( | std::ostream & | out_, |
| const multi_properties & | source_ | ||
| ) |
Write to an output stream.
| void datatools::multi_properties::config::write | ( | const std::string & | filename_, |
| const multi_properties & | source_ | ||
| ) |
Write to an output file.
1.8.15