#include <cstddef>#include <cstdint>#include <vector>#include <nop/serializer.h>#include <nop/structure.h>#include <nop/utility/buffer_reader.h>#include <nop/utility/stream_writer.h>#include "NlohmannJsonCompat.hpp"
Go to the source code of this file.
Classes | |
| class | dai::utility::VectorWriter |
Namespaces | |
| dai | |
| dai::utility | |
Macros | |
| #define | __has_feature(x) 0 |
| #define | DEPTHAI_DEFERRED_EXPAND(x) x |
| #define | DEPTHAI_NLOHMANN_DEFINE_TYPE_OPTIONAL_INTRUSIVE(Type, ...) |
| #define | DEPTHAI_NLOHMANN_DEFINE_TYPE_OPTIONAL_NON_INTRUSIVE(Type, ...) |
| #define | DEPTHAI_NLOHMANN_JSON_OPTIONAL_FROM(v1) if(nlohmann_json_j.contains(#v1)) nlohmann_json_j[#v1].get_to(nlohmann_json_t.v1); |
| #define | DEPTHAI_NLOHMANN_JSON_OPTIONAL_TO(v1) nlohmann::to_json(nlohmann_json_j[#v1], nlohmann_json_t.v1); |
| #define | DEPTHAI_SERIALIZE(...) |
| #define | DEPTHAI_SERIALIZE_EXT(...) |
| #define | DEPTHAI_SERIALIZE_OPTIONAL(...) |
| #define | DEPTHAI_SERIALIZE_OPTIONAL_EXT(...) |
Enumerations | |
| enum | dai::SerializationType { dai::SerializationType::LIBNOP, dai::SerializationType::JSON, dai::SerializationType::JSON_MSGPACK } |
Functions | |
| template<SerializationType TYPE, typename T , std::enable_if_t< TYPE==SerializationType::JSON_MSGPACK, bool > = true> | |
| bool | dai::utility::deserialize (const std::uint8_t *data, std::size_t size, T &obj) |
| template<typename T > | |
| bool | dai::utility::deserialize (const std::uint8_t *data, std::size_t size, T &obj) |
| template<typename T > | |
| bool | dai::utility::deserialize (const std::uint8_t *data, std::size_t size, T &obj, SerializationType type) |
| template<SerializationType TYPE, typename T > | |
| bool | dai::utility::deserialize (const std::vector< std::uint8_t > &data, T &obj) |
| template<typename T > | |
| bool | dai::utility::deserialize (const std::vector< std::uint8_t > &data, T &obj) |
| template<typename T > | |
| bool | dai::utility::deserialize (const std::vector< std::uint8_t > &data, T &obj, SerializationType type) |
| template<SerializationType TYPE, typename T > | |
| std::vector< std::uint8_t > | dai::utility::serialize (const T &obj) |
| template<typename T > | |
| std::vector< std::uint8_t > | dai::utility::serialize (const T &obj) |
| template<typename T > | |
| std::vector< std::uint8_t > | dai::utility::serialize (const T &obj, SerializationType type) |
| template<SerializationType TYPE, typename T , std::enable_if_t< TYPE==SerializationType::JSON_MSGPACK, bool > = true> | |
| bool | dai::utility::serialize (const T &obj, std::vector< std::uint8_t > &data) |
| template<typename T > | |
| bool | dai::utility::serialize (const T &obj, std::vector< std::uint8_t > &data) |
| template<typename T > | |
| bool | dai::utility::serialize (const T &obj, std::vector< std::uint8_t > &data, SerializationType type) |
Variables | |
| constexpr static auto | dai::DEFAULT_SERIALIZATION_TYPE = SerializationType::LIBNOP |
| #define __has_feature | ( | x | ) | 0 |
Definition at line 19 of file Serialization.hpp.
| #define DEPTHAI_DEFERRED_EXPAND | ( | x | ) | x |
Definition at line 232 of file Serialization.hpp.
| #define DEPTHAI_NLOHMANN_DEFINE_TYPE_OPTIONAL_INTRUSIVE | ( | Type, | |
| ... | |||
| ) |
Definition at line 250 of file Serialization.hpp.
| #define DEPTHAI_NLOHMANN_DEFINE_TYPE_OPTIONAL_NON_INTRUSIVE | ( | Type, | |
| ... | |||
| ) |
Definition at line 243 of file Serialization.hpp.
| #define DEPTHAI_NLOHMANN_JSON_OPTIONAL_FROM | ( | v1 | ) | if(nlohmann_json_j.contains(#v1)) nlohmann_json_j[#v1].get_to(nlohmann_json_t.v1); |
Definition at line 241 of file Serialization.hpp.
| #define DEPTHAI_NLOHMANN_JSON_OPTIONAL_TO | ( | v1 | ) | nlohmann::to_json(nlohmann_json_j[#v1], nlohmann_json_t.v1); |
Definition at line 240 of file Serialization.hpp.
| #define DEPTHAI_SERIALIZE | ( | ... | ) |
Definition at line 271 of file Serialization.hpp.
| #define DEPTHAI_SERIALIZE_EXT | ( | ... | ) |
Definition at line 267 of file Serialization.hpp.
| #define DEPTHAI_SERIALIZE_OPTIONAL | ( | ... | ) |
Definition at line 263 of file Serialization.hpp.
| #define DEPTHAI_SERIALIZE_OPTIONAL_EXT | ( | ... | ) |
Definition at line 259 of file Serialization.hpp.