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

A generic writer class inherited from the io_factory class. More...

#include <bayeux/datatools/io_factory.h>

Inheritance diagram for datatools::io_writer:
datatools::io_factory datatools::i_tree_dumpable

Public Member Functions

 io_writer (int mode_=io_factory::MODE_DEFAULT)
 
 io_writer (const std::string &stream_name_, int mode_=io_factory::MODE_DEFAULT)
 
virtual ~io_writer ()
 
- Public Member Functions inherited from datatools::io_factory
void set_logging_priority (datatools::logger::priority)
 
datatools::logger::priority get_logging_priority () const
 
 io_factory (int mode_=io_factory::MODE_DEFAULT)
 Constructor. More...
 
 io_factory (const std::string &stream_name_, int mode_=io_factory::MODE_DEFAULT)
 Constructor. More...
 
virtual ~io_factory ()
 Destructor. More...
 
bool eof () const
 
bool is_read () const
 
bool is_write () 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
 
bool is_append () const
 
bool is_no_append () const
 
bool is_single_archive () const
 
bool is_multi_archives () const
 
void start_archive ()
 
void stop_archive ()
 
template<typename Data >
void store (const Data &data_)
 
template<typename Data >
void load (Data &data_)
 
virtual void tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
 Main old interface method for printing. More...
 
void dump (std::ostream &out_) const
 
- Public Member Functions inherited from datatools::i_tree_dumpable
 i_tree_dumpable ()
 Constructor. More...
 
virtual ~i_tree_dumpable ()
 Destructor. More...
 
virtual void print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const
 Main new interface method for printing. More...
 
void print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const
 Printing with jsonized options. More...
 
void print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const
 Printing with jsonized options. More...
 
void tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const
 
void tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const
 
void smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const
 

Additional Inherited Members

- Public Types inherited from datatools::io_factory
enum  mode_flag_type {
  MODE_READ = 0x0, MODE_WRITE = 0x1, read = MODE_READ, write = MODE_WRITE,
  MODE_TEXT = 0x0, MODE_BINARY = 0x2, MODE_XML = 0x4, text = MODE_TEXT,
  binary = MODE_BINARY, xml = MODE_XML, MODE_NO_COMPRESS = 0x0, MODE_GZIP = 0x10,
  MODE_BZIP2 = 0x20, no_compress = MODE_NO_COMPRESS, gzip = MODE_GZIP, bzip2 = MODE_BZIP2,
  MODE_UNIQUE_ARCHIVE = 0x0, MODE_MULTI_ARCHIVES = 0x80, unique_archive = MODE_UNIQUE_ARCHIVE, multi_archives = MODE_MULTI_ARCHIVES,
  MODE_NO_APPEND = 0x0, MODE_APPEND = 0x100, no_append = MODE_NO_APPEND, append = MODE_APPEND,
  MODE_DEFAULT
}
 
- Public Types inherited from datatools::i_tree_dumpable
enum  ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 }
 Enumeration for standard output streams. More...
 
- Static Public Member Functions inherited from datatools::io_factory
static int guess_mode_from_filename (const std::string &filename_, int &mode_)
 
- Static Public Member Functions inherited from datatools::i_tree_dumpable
static const boost::property_tree::ptree & empty_options ()
 
static boost::property_tree::ptree make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false)
 
static std::ostream & last_skip_tag (std::ostream &out_)
 
static std::ostream & skip_tag (std::ostream &out_)
 
static std::ostream & last_tag (std::ostream &out_)
 
static std::ostream & tag (std::ostream &out_)
 
- Static Public Attributes inherited from datatools::io_factory
static const int SUCCESS = 0
 
static const int ERROR = 1
 
static const unsigned int MASK_RW = 0x1
 
static const unsigned int MASK_FORMAT = 0xE
 
static const unsigned int MASK_COMPRESSION = 0x30
 
static const unsigned int MASK_MULTIARCHIVE = 0x80
 
static const unsigned int MASK_APPEND = 0x100
 

Detailed Description

A generic writer class inherited from the io_factory class.

Constructor & Destructor Documentation

◆ io_writer() [1/2]

datatools::io_writer::io_writer ( int  mode_ = io_factory::MODE_DEFAULT)

◆ io_writer() [2/2]

datatools::io_writer::io_writer ( const std::string &  stream_name_,
int  mode_ = io_factory::MODE_DEFAULT 
)

◆ ~io_writer()

virtual datatools::io_writer::~io_writer ( )
virtual

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