Nebula
Loading...
Searching...
No Matches
flatbufferinterface.h File Reference
#include "io/uri.h"
#include "util/stringatom.h"
#include "flatbuffers/flatbuffers.h"
#include "nflatbuffer/nebula_flat.h"
#include "util/blob.h"
#include "io/ioserver.h"

Go to the source code of this file.

Classes

class  Flat::FlatbufferInterface
 

Namespaces

namespace  Flat
 Flatbuffer to Nebula type conversion functions.
 

Macros

#define SerializeFlatbufferText(TYPE, ITEM)
 Interface for dealing with flatbuffer files.
 
#define SerializeFlatbufferTextDirect(TYPE, BUFFER)
 
#define CompileFlatbuffer(TYPE, SOURCE, TARGET)
 

Macro Definition Documentation

◆ CompileFlatbuffer

#define CompileFlatbuffer ( TYPE,
SOURCE,
TARGET )
Value:
Flat::FlatbufferInterface::Compile(SOURCE, TARGET, TYPE##Identifier())
static bool Compile(IO::URI const &source, IO::URI const &targetFolder, const char *ident)
compile flatbuffer json to binary
Definition flatbufferinterface.cc:183

◆ SerializeFlatbufferText

#define SerializeFlatbufferText ( TYPE,
ITEM )
Value:
static Util::String SerializeHelper(ItemT const &item, const char *ident)
Helper function, use SerializeFlatbuffer macro instead.
Definition flatbufferinterface.h:63

Interface for dealing with flatbuffer files.

◆ SerializeFlatbufferTextDirect

#define SerializeFlatbufferTextDirect ( TYPE,
BUFFER )
Value:
Flat::FlatbufferInterface::BufferToText(BUFFER, TYPE##Identifier())
static Util::String BufferToText(const uint8_t *buffer, Util::StringAtom identifier)
Definition flatbufferinterface.cc:173