Ariles
|
Configuration writer class.
#include <writer.h>
Public Types | |
typedef ariles::ConfigurableFlags | Parameters |
Public Member Functions | |
GenericWriter (const std::size_t reserve=0) | |
GenericWriter (std::vector< t_NameValuePair > *name_value_pairs, const std::size_t reserve=0) | |
const serialization::Features & | getSerializationFeatures () const |
void | flush () |
Flush the configuration to the output. More... | |
void | reset (const bool initialize_structure=true) |
virtual void | descend (const std::string &map_name) |
Starts a nested map in the configuration file. More... | |
virtual void | ascend () |
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 | startArray (const std::size_t size, const bool compact=false) |
virtual void | shiftArray () |
virtual void | endArray () |
ARILES_MACRO_SUBSTITUTE (ARILES_BASIC_NUMERIC_TYPES_LIST) void writeElement(const std | |
virtual void | startMatrix (const bool compact=false) |
virtual void | startMatrixRow () |
virtual void | endMatrixRow () |
virtual 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... | |
Public Attributes | |
std::vector< t_NameValuePair > * | name_value_pairs_ |
std::size_t | index_ |
Protected Types | |
typedef ariles::Node< std::string > | NodeWrapper |
Protected Member Functions | |
void | expand () |
void | expandReserve (const std::size_t size) |
void | clear () |
const ariles::ConfigurableFlags & | getDefaultParameters () const |
Protected Attributes | |
std::vector< NodeWrapper > | node_stack_ |
std::size_t | reserve_ |
std::vector< t_NameValuePair > | buffer_name_value_pairs_ |
bool | initialize_structure_ |
|
protected |
|
inherited |
Definition at line 62 of file serialization.h.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inlinevirtual |
Reimplemented from ariles::write::Visitor.
|
inlineprotected |
|
inlinevirtual |
Starts a nested map in the configuration file.
[in] | map_name | name of the map |
Reimplemented from ariles::write::Visitor.
|
inlinevirtual |
Reimplemented from ariles::write::Visitor.
|
inlinevirtual |
Ends a nested map in the configuration file.
Reimplemented from ariles::write::Visitor.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_msgpack::Writer, ariles::ns_pugixml::Writer, ariles::ns_ros::Writer, and ariles::ns_yaml_cpp::Writer.
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
Flush the configuration to the output.
Implements ariles::write::Visitor.
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 68 of file serialization.h.
|
inlinevirtual |
Implements ariles::serialization::Base.
|
inlinestaticinherited |
|
inlineinherited |
|
inline |
|
inlinevirtual |
Reimplemented from ariles::write::Visitor.
|
inlineinherited |
|
inlinevirtual |
Implements ariles::write::Visitor.
|
inlinevirtual |
Starts a nested map in the configuration file.
[in] | num_entries | number of child entries |
Reimplemented from ariles::write::Visitor.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_octave::Writer.
|
inlinevirtualinherited |
Reimplemented in ariles::ns_msgpack::Writer, ariles::ns_pugixml::Writer, ariles::ns_ros::Writer, and ariles::ns_yaml_cpp::Writer.
|
protected |
std::size_t ariles::ns_array::GenericWriter< t_NameValuePair >::index_ |
|
protected |
std::vector<t_NameValuePair>* ariles::ns_array::GenericWriter< t_NameValuePair >::name_value_pairs_ |
|
protected |
|
protected |