Ariles
|
#include <writer.h>
Public Types | |
typedef ariles::ConfigurableFlags | Parameters |
Public Member Functions | |
Writer (const std::string &file_name) | |
Writer (std::ostream &output_stream) | |
void | flush () |
Flush the configuration to the output. More... | |
void | descend (const std::string &map_name) |
Starts a nested map in the configuration file. More... | |
void | ascend () |
void | startArray (const std::size_t size, const bool=false) |
void | shiftArray () |
void | endArray () |
void | startRoot (const std::string &name) |
void | endRoot (const std::string &name) |
const serialization::Features & | getSerializationFeatures () const |
virtual void | startMap (const std::size_t num_entries) |
Starts a nested map in the configuration file. More... | |
virtual void | endMap () |
Ends a nested map in the configuration file. More... | |
virtual void | startMatrix (const bool compact=false) |
virtual void | startMatrixRow () |
virtual void | endMatrixRow () |
virtual void | endMatrix () |
template<typename t_Entry > | |
ARILES_BASIC_TYPES_LIST void | start (const t_Entry &entry, const std::string &entry_name, const Parameters ¶m) |
template<typename t_Entry > | |
void | operator() (const t_Entry &entry, const std::string &entry_name, const Parameters ¶m) |
template<class t_Ariles > | |
const Parameters & | getParameters (const t_Ariles &ariles_class) const |
Static Public Member Functions | |
static void | openFile (std::ofstream &config_ofs, const std::string &file_name) |
open configuration file More... | |
Protected Types | |
typedef impl::Writer | Impl |
typedef ARILES_SHARED_PTR< impl::Writer > | ImplPtr |
Protected Member Functions | |
const ariles::ConfigurableFlags & | getDefaultParameters () const |
Protected Attributes | |
ImplPtr | impl_ |
|
protectedinherited |
|
protectedinherited |
|
inherited |
Definition at line 62 of file serialization.h.
|
explicit |
Definition at line 70 of file writer.cpp.
|
explicit |
Definition at line 76 of file writer.cpp.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 95 of file writer.cpp.
|
virtual |
Starts a nested map in the configuration file.
[in] | map_name | name of the map |
Reimplemented from ariles::write::Visitor.
Definition at line 90 of file writer.cpp.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 124 of file writer.cpp.
|
inlinevirtualinherited |
Ends a nested map in the configuration file.
Reimplemented in ariles::ns_array::GenericWriter< t_NameValuePair >, ariles::ns_octave::Writer, and ariles::ns_yaml_cpp::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 143 of file writer.cpp.
|
virtual |
Flush the configuration to the output.
Implements ariles::write::Visitor.
Definition at line 83 of file writer.cpp.
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 68 of file serialization.h.
|
inlinevirtualinherited |
Implements ariles::serialization::Base.
|
inlinestaticinherited |
|
inlineinherited |
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 110 of file writer.cpp.
|
inlineinherited |
|
virtual |
Implements ariles::write::Visitor.
Definition at line 101 of file writer.cpp.
|
inlinevirtualinherited |
Starts a nested map in the configuration file.
[in] | num_entries | number of child entries |
Reimplemented in ariles::ns_array::GenericWriter< t_NameValuePair >, ariles::ns_octave::Writer, ariles::ns_msgpack::Writer, ariles::ns_msgpack_compact::Writer, and ariles::ns_yaml_cpp::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 130 of file writer.cpp.
|
protectedinherited |