![]() |
fpmas 1.5
|
#include <model.h>
Static Public Member Functions | |
| static void | to_json (json &j, const fpmas::api::model::WeakAgentPtr &pointer) |
| static fpmas::api::model::WeakAgentPtr | from_json (const json &j) |
fpmas::api::model::WeakAgentPtr nlohmann::json serialization rules declaration.
to_json and from_json methods must be defined by the user at compile time, depending on its own Agent types, using the FPMAS_JSON_SET_UP() macro, that must be called from a source file. Otherwise, linker errors will be thrown.
|
static |
|
static |
Equivalent to nlohmann::adl_serializer<fpmas::api::model::AgentPtr>::from_json(const json& j), but the result is wrapped in an fpmas::api::model::WeakAgentPtr instance.