|
Pakman
|
#include <ostream>#include "core/Command.h"#include "core/TaskHandler.h"#include "LineString.h"

Go to the source code of this file.
Functions | |
| template<typename value_type > | |
| void | serialise_scalar_value (const LineString &key, const value_type &value, std::ostream &out) |
| template<> | |
| void | serialise_scalar_value (const LineString &key, const bool &value, std::ostream &out) |
| template<> | |
| void | serialise_scalar_value (const LineString &key, const std::string &value, std::ostream &out) |
| template<> | |
| void | serialise_scalar_value (const LineString &key, const Command &value, std::ostream &out) |
| template<> | |
| void | serialise_scalar_value (const LineString &key, const TaskHandler &value, std::ostream &out) |
| template<typename value_type > | |
| 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) |
This file contains functions to serialise scalar values, vector values, and the whole Pakman state.
Definition in file serialisation.h.
| std::ostream& operator<< | ( | std::ostream & | out, |
| const LineString & | line_string | ||
| ) |
Overload << operator for LineString
| out | output stream |
| line_string | line string |
Definition at line 43 of file serialisation.cc.
| void serialise_scalar_value | ( | const LineString & | key, |
| const value_type & | value, | ||
| std::ostream & | out | ||
| ) |
Serialise scalar value
| key | identifier of serialised value |
| value | value to serialise |
| out | output stream to write to |
Definition at line 24 of file serialisation.h.
| void serialise_scalar_value | ( | const LineString & | key, |
| const bool & | value, | ||
| std::ostream & | out | ||
| ) |
Serialise scalar bool value
| key | identifier of serialised value |
| value | bool to serialise |
| out | output stream to write to |
Definition at line 4 of file serialisation.cc.
| void serialise_scalar_value | ( | const LineString & | key, |
| const std::string & | value, | ||
| std::ostream & | out | ||
| ) |
Serialise scalar string value
In order to serialise a string value, we add a field containing the number of characters in the string.
| key | identifier of serialised value |
| value | string to serialise |
| out | output stream to write to |
Definition at line 18 of file serialisation.cc.
| void serialise_scalar_value | ( | const LineString & | key, |
| const Command & | value, | ||
| std::ostream & | out | ||
| ) |
Serialise scalar Command value
We serialise Command objects by serialising the raw command string.
| key | identifier of serialised value |
| value | Command to serialise |
| out | output stream to write to |
Definition at line 25 of file serialisation.cc.
| void serialise_scalar_value | ( | const LineString & | key, |
| const TaskHandler & | value, | ||
| std::ostream & | out | ||
| ) |
Serialise scalar TaskHandler value
We serialise TaskHandler objects by serialising its input string, output string, and error code.
| key | identifier of serialised value |
| value | TaskHandler to serialise |
| out | output stream to write to |
Definition at line 32 of file serialisation.cc.
| void serialise_vector | ( | const LineString & | key, |
| const std::vector< value_type > & | values, | ||
| std::ostream & | out | ||
| ) |
Serialise vector
| key | identifier of serialised vector |
| values | values to serialise |
| out | output stream to write to |
Definition at line 85 of file serialisation.h.