![]() |
fpmas 1.6
|
Typedefs | |
typedef BasicObjectPack< Serializer > | ObjectPack |
typedef BasicObjectPack< LightSerializer > | LightObjectPack |
template<typename T , typename Enable = void> | |
using | JsonSerializer = BasicJsonSerializer< T, nlohmann::json > |
typedef BasicObjectPack< JsonSerializer > | JsonPack |
template<typename T , typename Enable = void> | |
using | LightJsonSerializer = BasicJsonSerializer< T, fpmas::io::json::light_json > |
typedef BasicObjectPack< LightJsonSerializer > | LightJsonPack |
Functions | |
template<template< typename, typename > class S> | |
std::ostream & | operator<< (std::ostream &o, const BasicObjectPack< S > &pack) |
ObjectPack serialization related features.
BasicObjectPack specialization based on the regular binary fpmas::io::datapack::Serializer.
An ObjectPack can be seen as a json
or YAML
object that could be defined in other libraries, using other serialization techniques.
LightSerializer based BasicObjectPack specialization.
Light version of the regular ObjectPack.
using fpmas::io::datapack::JsonSerializer = typedef BasicJsonSerializer<T, nlohmann::json> |
An nlohmann::json based Serializer.
See https://github.com/nlohmann/json#arbitrary-types-conversions to learn how to define rules to serialize any custom type with the nlohmann::json library.
T | type to serialize as an nlohmann::json instance |
An nlohmann::json based BasicObjectPack.
using fpmas::io::datapack::LightJsonSerializer = typedef BasicJsonSerializer<T, fpmas::io::json::light_json> |
An fpmas::io::json::light_json based serializer. Can be considered as the light version of JsonSerializer.
An fpmas::io::json::light_json based BasicObjectPack. Can be considered as the light version of JsonPack.
std::ostream & fpmas::io::datapack::operator<< | ( | std::ostream & | o, |
const BasicObjectPack< S > & | pack | ||
) |
BasicObjectPack output stream operator specialization.
The internal DataPack is written has hexadecimal values.