Ariles
|
#include <octave.h>
Public Types | |
typedef ariles::ConfigurableFlags | Parameters |
Public Member Functions | |
Writer (const std::string &file_name) | |
Writer (std::ostream &output_stream) | |
const serialization::Features & | getSerializationFeatures () const |
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 | startMap (const std::size_t) |
Starts a nested map in the configuration file. More... | |
void | endMap () |
Ends a nested map in the configuration file. More... | |
void | startArray (const std::size_t size, const bool compact=false) |
void | shiftArray () |
void | endArray () |
void | startMatrix (const bool compact=false) |
void | startMatrixRow () |
void | endMatrixRow () |
void | endMatrix () |
virtual void | startRoot (const std::string &name) |
virtual void | endRoot (const std::string &name) |
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_ |
|
protected |
|
protected |
|
inherited |
Definition at line 62 of file serialization.h.
|
explicit |
Definition at line 77 of file writer.cpp.
|
explicit |
Definition at line 83 of file writer.cpp.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 127 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 103 of file writer.cpp.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 155 of file writer.cpp.
|
inlinevirtual |
Ends a nested map in the configuration file.
Reimplemented from ariles::write::Visitor.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 194 of file writer.cpp.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 182 of file writer.cpp.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_msgpack::Writer, ariles::ns_pugixml::Writer, ariles::ns_ros::Writer, and ariles::ns_yaml_cpp::Writer.
|
virtual |
Flush the configuration to the output.
Implements ariles::write::Visitor.
Definition at line 96 of file writer.cpp.
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 68 of file serialization.h.
|
virtual |
Implements ariles::serialization::Base.
Definition at line 89 of file writer.cpp.
|
inlinestaticinherited |
|
inlineinherited |
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 149 of file writer.cpp.
|
inlineinherited |
|
virtual |
Implements ariles::write::Visitor.
Definition at line 133 of file writer.cpp.
|
inlinevirtual |
Starts a nested map in the configuration file.
[in] | num_entries | number of child entries |
Reimplemented from ariles::write::Visitor.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 161 of file writer.cpp.
|
virtual |
Reimplemented from ariles::write::Visitor.
Definition at line 177 of file writer.cpp.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_msgpack::Writer, ariles::ns_pugixml::Writer, ariles::ns_ros::Writer, and ariles::ns_yaml_cpp::Writer.