FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
fcb::AttrValue Struct Reference

One decoded attribute value. More...

#include <fcb/attribute.hpp>

Public Types

enum class  Type {
  Null , Bool , Int , UInt ,
  Double , String , Json , Binary
}
 

Public Attributes

Type type = Type::Null
 
bool b = false
 
std::int64_t i = 0
 
std::uint64_t u = 0
 
double d = 0.0
 
std::string s
 

Detailed Description

One decoded attribute value.

Note this is the ATTRIBUTE BLOB encoding, which differs from the B+tree KEY encoding for two types: DateTime is a length-prefixed string here but 12 packed bytes as a key, and strings are length-prefixed here but fixed width as keys.

Definition at line 23 of file attribute.hpp.

Member Enumeration Documentation

◆ Type

Enumerator
Null 
Bool 
Int 
UInt 
Double 
String 
Json 
Binary 

Definition at line 24 of file attribute.hpp.

Member Data Documentation

◆ b

bool fcb::AttrValue::b = false

Definition at line 36 of file attribute.hpp.

◆ d

double fcb::AttrValue::d = 0.0

Definition at line 39 of file attribute.hpp.

◆ i

std::int64_t fcb::AttrValue::i = 0

Definition at line 37 of file attribute.hpp.

◆ s

std::string fcb::AttrValue::s

Definition at line 40 of file attribute.hpp.

◆ type

Type fcb::AttrValue::type = Type::Null

Definition at line 35 of file attribute.hpp.

◆ u

std::uint64_t fcb::AttrValue::u = 0

Definition at line 38 of file attribute.hpp.


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