Classes | |
struct | BufferSpan |
struct | Schema |
DataTamer uses a simple "flat" schema of key/value pairs (each pair is a "field"). More... | |
struct | SnapshotView |
struct | TypeField |
Typedefs | |
using | FieldsVector = std::vector< TypeField > |
using | VarNumber = std::variant< bool, char, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, float, double > |
Functions | |
uint64_t | AddFieldToHash (const TypeField &field, uint64_t hash) |
Schema | BuilSchemaFromText (const std::string &txt) |
template<typename T > | |
T | Deserialize (BufferSpan &buffer) |
VarNumber | DeserializeToVarNumber (BasicType type, BufferSpan &buffer) |
bool | GetBit (BufferSpan mask, size_t index) |
template<typename NumberCallback , typename CustomCallback = decltype(NullCustomCallback)> | |
bool | ParseSnapshot (const Schema &schema, SnapshotView snapshot, const NumberCallback &callback_number, const CustomCallback &callback_custom=NullCustomCallback) |
template<typename NumberCallback > | |
bool | ParseSnapshotRecursive (const TypeField &field, const std::map< std::string, FieldsVector > &types_list, BufferSpan &buffer, const NumberCallback &callback_number, const std::string &prefix) |
Variables | |
constexpr auto | NullCustomCallback |
constexpr int | SCHEMA_VERSION = 4 |
constexpr size_t | TypesCount = 13 |
using DataTamerParser::FieldsVector = typedef std::vector<TypeField> |
Definition at line 72 of file data_tamer_parser.hpp.
using DataTamerParser::VarNumber = typedef std::variant<bool, char, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, float, double> |
Definition at line 43 of file data_tamer_parser.hpp.
|
strong |
Enumerator | |
---|---|
BOOL | |
CHAR | |
INT8 | |
UINT8 | |
INT16 | |
UINT16 | |
INT32 | |
UINT32 | |
INT64 | |
UINT64 | |
FLOAT32 | |
FLOAT64 | |
OTHER |
Definition at line 19 of file data_tamer_parser.hpp.
|
inline |
Definition at line 186 of file data_tamer_parser.hpp.
|
inline |
Definition at line 216 of file data_tamer_parser.hpp.
|
inline |
Definition at line 126 of file data_tamer_parser.hpp.
|
inline |
Definition at line 140 of file data_tamer_parser.hpp.
|
inline |
Definition at line 180 of file data_tamer_parser.hpp.
|
inline |
Definition at line 411 of file data_tamer_parser.hpp.
bool DataTamerParser::ParseSnapshotRecursive | ( | const TypeField & | field, |
const std::map< std::string, FieldsVector > & | types_list, | ||
BufferSpan & | buffer, | ||
const NumberCallback & | callback_number, | ||
const std::string & | prefix | ||
) |
Definition at line 362 of file data_tamer_parser.hpp.
|
constexpr |
Definition at line 107 of file data_tamer_parser.hpp.
|
constexpr |
Definition at line 17 of file data_tamer_parser.hpp.
|
constexpr |
Definition at line 40 of file data_tamer_parser.hpp.