#include <data_node_functor.h>
Public Types | |
typedef NodeType | node_type |
typedef node_type::value_type | pair_type |
typedef std::map< std::string, std::string > | entity_translation_map |
Public Member Functions | |
key_value_serializer (const entity_translation_map *map, std::ostream &dest, const std::string &prefix, const std::string &separator, const std::string &suffix) | |
map: needed so we can do entity translation in a unified manner here. | |
void | operator() (const pair_type &src) const |
Sends the following formatted string to os:. |
Intended for use by Serializers, not Serializables.
NodeType is the container type used for data serialization (e.g. s11n::data_node).
Definition at line 321 of file data_node_functor.h.
|
map: needed so we can do entity translation in a unified manner here. It must outlive this object. Pass it 0 for no translation. Translations are only applied on VALUES, not KEYS. prefix: inserted before each property. separator: inserted between the key and value. suffix: appended after each entry. Definition at line 344 of file data_node_functor.h. |
|
Sends the following formatted string to os:. {prefix}{src.first}{separator}{src.second}{suffix} Definition at line 360 of file data_node_functor.h. References s11n::to_string(), and s11n::translate_entities(). |