Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
data_tamer_parser.hpp File Reference
#include <array>
#include <cstdint>
#include <cstring>
#include <functional>
#include <limits>
#include <map>
#include <sstream>
#include <string>
#include <variant>
#include <vector>
Include dependency graph for data_tamer_parser.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DataTamerParser::BufferSpan
 
struct  DataTamerParser::Schema
 DataTamer uses a simple "flat" schema of key/value pairs (each pair is a "field"). More...
 
struct  DataTamerParser::SnapshotView
 
struct  DataTamerParser::TypeField
 

Namespaces

 DataTamerParser
 

Typedefs

using DataTamerParser::FieldsVector = std::vector< TypeField >
 
using DataTamerParser::VarNumber = std::variant< bool, char, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, float, double >
 

Enumerations

enum  DataTamerParser::BasicType {
  DataTamerParser::BasicType::BOOL, DataTamerParser::BasicType::CHAR, DataTamerParser::BasicType::INT8, DataTamerParser::BasicType::UINT8,
  DataTamerParser::BasicType::INT16, DataTamerParser::BasicType::UINT16, DataTamerParser::BasicType::INT32, DataTamerParser::BasicType::UINT32,
  DataTamerParser::BasicType::INT64, DataTamerParser::BasicType::UINT64, DataTamerParser::BasicType::FLOAT32, DataTamerParser::BasicType::FLOAT64,
  DataTamerParser::BasicType::OTHER
}
 

Functions

uint64_t DataTamerParser::AddFieldToHash (const TypeField &field, uint64_t hash)
 
Schema DataTamerParser::BuilSchemaFromText (const std::string &txt)
 
template<typename T >
DataTamerParser::Deserialize (BufferSpan &buffer)
 
VarNumber DataTamerParser::DeserializeToVarNumber (BasicType type, BufferSpan &buffer)
 
bool DataTamerParser::GetBit (BufferSpan mask, size_t index)
 
template<typename NumberCallback , typename CustomCallback = decltype(NullCustomCallback)>
bool DataTamerParser::ParseSnapshot (const Schema &schema, SnapshotView snapshot, const NumberCallback &callback_number, const CustomCallback &callback_custom=NullCustomCallback)
 
template<typename NumberCallback >
bool DataTamerParser::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 DataTamerParser::NullCustomCallback
 
constexpr int DataTamerParser::SCHEMA_VERSION = 4
 
constexpr size_t DataTamerParser::TypesCount = 13
 


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49