#include <flatbufferinterface.h>
|
static void | Init () |
| Initialize datastructures and load all schema files in export.
|
|
static bool | LoadSchema (IO::URI const &file) |
|
static bool | CompileSchema (IO::URI const &file, IO::URI const &outFile) |
|
static Util::Blob | ParseJson (IO::URI const &file) |
|
static Util::Blob | ParseJson (IO::URI const &file, const Util::String &schema) |
|
static bool | HasSchema (Util::StringAtom identifier) |
|
template<typename BaseT, typename ItemT> |
static Util::String | SerializeHelper (ItemT const &item, const char *ident) |
| Helper function, use SerializeFlatbuffer macro instead.
|
|
template<typename BaseT, typename ItemT> |
static Util::Blob | SerializeFlatbuffer (ItemT const &item) |
| Serialize to binary blob.
|
|
template<typename BaseT, typename ItemT> |
static void | DeserializeFlatbufferFile (ItemT &item, IO::URI const &file) |
|
template<typename BaseT, typename ItemT> |
static void | DeserializeFlatbuffer (ItemT &item, const uint8_t *buf) |
|
template<typename BaseT, typename ItemT> |
static bool | DeserializeJsonFlatbuffer (ItemT &item, const IO::URI &file, const Util::String &rootName) |
|
static Util::String | BufferToText (const uint8_t *buffer, Util::StringAtom identifier) |
|
static bool | Compile (IO::URI const &source, IO::URI const &targetFolder, const char *ident) |
| compile flatbuffer json to binary
|
|
◆ BufferToText()
◆ Compile()
bool FlatbufferInterface::Compile |
( |
IO::URI const & | source, |
|
|
IO::URI const & | targetFolder, |
|
|
const char * | ident ) |
|
static |
compile flatbuffer json to binary
◆ CompileSchema()
bool FlatbufferInterface::CompileSchema |
( |
IO::URI const & | file, |
|
|
IO::URI const & | outFile ) |
|
static |
◆ CreateParserForJson()
flatbuffers::Parser * FlatbufferInterface::CreateParserForJson |
( |
IO::URI const & | file | ) |
|
|
staticprivate |
◆ DeserializeFlatbuffer()
template<typename BaseT, typename ItemT>
void Flat::FlatbufferInterface::DeserializeFlatbuffer |
( |
ItemT & | item, |
|
|
const uint8_t * | buf ) |
|
static |
◆ DeserializeFlatbufferFile()
template<typename BaseT, typename ItemT>
void Flat::FlatbufferInterface::DeserializeFlatbufferFile |
( |
ItemT & | item, |
|
|
IO::URI const & | file ) |
|
static |
◆ DeserializeJsonFlatbuffer()
template<typename BaseT, typename ItemT>
bool Flat::FlatbufferInterface::DeserializeJsonFlatbuffer |
( |
ItemT & | item, |
|
|
const IO::URI & | file, |
|
|
const Util::String & | rootName ) |
|
static |
◆ HasSchema()
◆ Init()
void FlatbufferInterface::Init |
( |
| ) |
|
|
static |
Initialize datastructures and load all schema files in export.
◆ LoadSchema()
bool FlatbufferInterface::LoadSchema |
( |
IO::URI const & | file | ) |
|
|
static |
◆ ParseJson() [1/2]
◆ ParseJson() [2/2]
◆ SerializeFlatbuffer()
template<typename BaseT, typename ItemT>
Util::Blob Flat::FlatbufferInterface::SerializeFlatbuffer |
( |
ItemT const & | item | ) |
|
|
static |
Serialize to binary blob.
◆ SerializeHelper()
template<typename BaseT, typename ItemT>
Util::String Flat::FlatbufferInterface::SerializeHelper |
( |
ItemT const & | item, |
|
|
const char * | ident ) |
|
static |
Helper function, use SerializeFlatbuffer macro instead.
The documentation for this class was generated from the following files: