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

Builds the pointOfContact fields of a header from CityJSON metadata.pointOfContact. More...

#include <fcb/writer/header_serializer.hpp>

Public Attributes

std::optional<::flatbuffers::Offset<::flatbuffers::String > > contact_name
std::optional<::flatbuffers::Offset<::flatbuffers::String > > contact_type
std::optional<::flatbuffers::Offset<::flatbuffers::String > > role
std::optional<::flatbuffers::Offset<::flatbuffers::String > > phone
std::optional<::flatbuffers::Offset<::flatbuffers::String > > email
std::optional<::flatbuffers::Offset<::flatbuffers::String > > website
std::optional<::flatbuffers::Offset<::flatbuffers::String > > address_thoroughfare_number
std::optional<::flatbuffers::Offset<::flatbuffers::String > > address_thoroughfare_name
std::optional<::flatbuffers::Offset<::flatbuffers::String > > address_locality
std::optional<::flatbuffers::Offset<::flatbuffers::String > > address_postcode
std::optional<::flatbuffers::Offset<::flatbuffers::String > > address_country

Detailed Description

Builds the pointOfContact fields of a header from CityJSON metadata.pointOfContact.

Returns the six scalar POC offsets and five address offsets, all std::nullopt when absent from the source object – one struct rather than eleven out-parameters, to keep the exact creation order (contact_name, contact_type, role, phone, email, website, THEN thoroughfare_number, thoroughfare_name, locality, postcode, country) visible in one place, matching to_point_of_contact (writer/serializer.rs:319-369) exactly. address.postcode wins over address.postalCode when a document carries both (.or_else order).

Definition at line 110 of file header_serializer.hpp.

Member Data Documentation

◆ address_country

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::address_country

Definition at line 121 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ address_locality

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::address_locality

Definition at line 119 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ address_postcode

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::address_postcode

Definition at line 120 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ address_thoroughfare_name

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::address_thoroughfare_name

Definition at line 118 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ address_thoroughfare_number

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::address_thoroughfare_number

Definition at line 117 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ contact_name

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::contact_name

Definition at line 111 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ contact_type

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::contact_type

Definition at line 112 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ email

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::email

Definition at line 115 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ phone

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::phone

Definition at line 114 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ role

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::role

Definition at line 113 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().

◆ website

std::optional<::flatbuffers::Offset<::flatbuffers::String> > fcb::PocOffsets::website

Definition at line 116 of file header_serializer.hpp.

Referenced by fcb::to_fcb_header(), and fcb::to_point_of_contact().


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