1 #ifndef SERIALISATION_H 2 #define SERIALISATION_H 6 #include "core/Command.h" 7 #include "core/TaskHandler.h" 9 #include "LineString.h" 23 template <
typename value_type>
27 out << key.
str() <<
":" << value << std::endl;
84 template <
typename value_type>
86 const std::vector<value_type>& values,
90 out << key.
str() <<
":" << values.size() << std::endl;
93 for (
unsigned idx = 0; idx < values.size(); ++idx)
95 serialise_scalar_value<value_type>(key.
str() +
"_" + std::to_string(idx),
109 #endif // SERIALISATION_H const std::string & str() const
void serialise_vector(const LineString &key, const std::vector< value_type > &values, std::ostream &out)
std::ostream & operator<<(std::ostream &out, const LineString &line_string)
void serialise_scalar_value(const LineString &key, const value_type &value, std::ostream &out)