![]() |
fpmas 1.6
|
#include <breakpoint.h>


Public Member Functions | |
| void | dump (std::ostream &stream, const T &object) override |
| void | load (std::istream &stream, T &object) override |
| virtual void | dump (std::ostream &stream, const T &object)=0 |
| virtual void | load (std::istream &stream, T &object)=0 |
JSON based api::io::Breakpoint implementation.
Data is serialized / unserialized using nlohmann json serialization rules.
|
inlineoverridevirtual |
Serializes the specified object with the nlohmann json library, and sends it to the output stream.
The MessagePack format is used for more compact dumps.
| stream | output stream |
| object | object to save |
Implements fpmas::api::io::Breakpoint< T >.
|
inlineoverridevirtual |
Loads data from the input stream into the specified object.
The stream must provide Json data in the MessagePack format, as performed by the dump() method.
Read data is then loaded into object using the following statement, where j is the json object parsed from the input stream:
| stream | input stream |
| object | T instance in which read data will be loaded |
Implements fpmas::api::io::Breakpoint< T >.