ZeroBuf  0.1.0
ZeroBuf is a replacement for FlatBuffers
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
zerobuf::GenericBase< Alloc > Class Template Reference

A ZeroBuf object which can hold values that are described by the given schema. More...

#include <Generic.h>

+ Inheritance diagram for zerobuf::GenericBase< Alloc >:
+ Collaboration diagram for zerobuf::GenericBase< Alloc >:

Public Member Functions

ZEROBUF_API GenericBase (const Schema &schema)
 
ZEROBUF_API servus::uint128_t getZerobufType () const final
 
ZEROBUF_API Schema getSchema () const final
 
- Public Member Functions inherited from zerobuf::Zerobuf
virtual void notifyUpdated ()
 
ZEROBUF_API const void * getZerobufData () const
 
ZEROBUF_API size_t getZerobufSize () const
 
ZEROBUF_API void setZerobufData (const void *data, size_t size)
 
ZEROBUF_API std::string toJSON () const
 
ZEROBUF_API void fromJSON (const std::string &json)
 
ZEROBUF_API bool operator== (const Zerobuf &rhs) const
 
ZEROBUF_API bool operator!= (const Zerobuf &rhs) const
 
const AllocatorgetAllocator () const
 

Additional Inherited Members

- Protected Member Functions inherited from zerobuf::Zerobuf
 Zerobuf (Allocator *alloc)
 
ZEROBUF_API Zerobufoperator= (const Zerobuf &rhs)
 
AllocatorgetAllocator ()
 
ZEROBUF_API void _setZerobufArray (const void *data, const size_t size, const size_t arrayNum)
 

Detailed Description

template<class Alloc = NonMovingAllocator>
class zerobuf::GenericBase< Alloc >

A ZeroBuf object which can hold values that are described by the given schema.

The main purpose is to create an object at runtime where the values can be set and accessed via JSON w/o having the schema file nor the generated class file available. Hence it does not provide any semantic methods.

Definition at line 26 of file Generic.h.


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