/workspaces/astro/sol3-sdk/cpp/sol3/core/fb_json.h File Reference

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/core/fb_json.h File Reference
Space-ng SDK
fb_json.h File Reference
#include "sol3/cpp/filesystem.h"
#include <flatbuffers/base.h>
#include <flatbuffers/idl.h>
#include <fmt/format.h>
#include <fstream>

Go to the source code of this file.

Namespaces

 sol3
 
 sol3::core
 
 sol3::core::impl
 

Enumerations

enum class  sol3::core::JsonFormat { sol3::core::SINGLE_LINE = 0 , sol3::core::MULTI_LINE = 1 }
 

Functions

void sol3::core::toJson (flatbuffers::Parser const &parser, uint8_t const *buffer, std::string &out_json)
 
std::string sol3::core::toJson (flatbuffers::Parser const &parser, uint8_t const *buffer)
 
flatbuffers::span< uint8_t const > sol3::core::bufferSpanFromJson (flatbuffers::Parser &parser, std::string const &json_str)
 
template<typename TMessage >
flatbuffers::Parser sol3::core::deserializeReflectionParser ()
 
template<typename TMessage >
flatbuffers::Parser & sol3::core::reflectionParser (JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessage >
void sol3::core::toJson (uint8_t const *buffer, std::string &out_json, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessage >
std::string sol3::core::toJson (uint8_t const *buffer, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessage >
void sol3::core::toJson (TMessage const *table, std::string &out_json, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessage >
std::string sol3::core::toJson (TMessage const *table, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessageT >
void sol3::core::toJson (TMessageT const &object, std::string &out_json, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessageT >
std::string sol3::core::toJson (TMessageT const &object, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessage >
TMessage const * sol3::core::fromJson (std::string const &json_str)
 
template<typename TMessageT >
void sol3::core::fromJson (std::string const &json_str, TMessageT &out_message)
 
std::string sol3::core::impl::loadJsonFile (cpp::fs::path const &json_path)
 
template<typename TMessage >
TMessage const * sol3::core::fromJsonFile (cpp::fs::path const &json_path)
 
template<typename TMessageT >
void sol3::core::fromJsonFile (cpp::fs::path const &json_path, TMessageT &out_message)
 
template<typename TMessageT >
void sol3::core::toJsonFile (cpp::fs::path const &json_path, TMessageT const &message, JsonFormat format=JsonFormat::SINGLE_LINE)
 
template<typename TMessage >
void sol3::core::toJsonFile (cpp::fs::path const &json_path, TMessage const *message, JsonFormat format=JsonFormat::SINGLE_LINE)