Nebula
Loading...
Searching...
No Matches
Flat::FlatbufferInterface Class Reference

#include <flatbufferinterface.h>

Static Public Member Functions

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)
 
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 >
static Util::String SerializeToText (const uint8_t *buf)
 
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)
 
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
 

Member Function Documentation

◆ BufferToText()

Util::String FlatbufferInterface::BufferToText ( const uint8_t * buffer,
Util::StringAtom identifier )
static

◆ 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)
static

◆ 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

◆ HasSchema()

bool FlatbufferInterface::HasSchema ( Util::StringAtom identifier)
static

◆ Init()

void FlatbufferInterface::Init ( )
static

Initialize datastructures and load all schema files in export.

◆ LoadSchema()

bool FlatbufferInterface::LoadSchema ( IO::URI const & file)
static

◆ 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.

◆ SerializeToText()

template<typename BaseT >
static Util::String Flat::FlatbufferInterface::SerializeToText ( const uint8_t * buf)
static

The documentation for this class was generated from the following files: