fpmas::api::model::WeakAgentPtr fpmas::io::datapack::LightSerializer serialization rules declaration.
to_datapack
and from_datapack
methods must be defined by the user at compile time, depending on its own Agent types, using the FPMAS_DATAPACK_SET_UP() macro, that must be called from a source file. Otherwise, linker errors will be thrown.
The behavior of the specified methods are equivalent to the corresponding fpmas::io::datapack::LightSerializer<AgentPtr> definitions, but Agents are wrapped in WeakAgentPtr instance, so that no automatic memory management is performed.