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

A parsed header that OWNS its backing bytes. More...

#include <fcb/header.hpp>

Public Member Functions

 HeaderView ()=default
 
const FileInfoinfo () const
 
const FileLayoutlayout () const
 
const std::vector< AttrIndexInfo > & attr_indices () const
 

Friends

struct detail::HeaderAccess
 
HeaderView read_header (std::shared_ptr< RangeReader > reader)
 Read and validate the file preamble and header.
 

Detailed Description

A parsed header that OWNS its backing bytes.

The raw ::Header pointer is deliberately not exposed: a caller could retain it past this object's destruction and read freed memory. Internal decoders reach it through detail::HeaderAccess.

Definition at line 108 of file header.hpp.

Constructor & Destructor Documentation

◆ HeaderView()

fcb::HeaderView::HeaderView ( )
default

Member Function Documentation

◆ attr_indices()

const std::vector< AttrIndexInfo > & fcb::HeaderView::attr_indices ( ) const
inline

Definition at line 114 of file header.hpp.

Referenced by fcb::FcbReader::select_attr().

◆ info()

◆ layout()

const FileLayout & fcb::HeaderView::layout ( ) const
inline

Friends And Related Symbol Documentation

◆ detail::HeaderAccess

friend struct detail::HeaderAccess
friend

Definition at line 117 of file header.hpp.

◆ read_header

HeaderView read_header ( std::shared_ptr< RangeReader reader)
friend

Read and validate the file preamble and header.

Takes SHARED ownership so it can construct its own per-query BufferedRangeReader internally (over-fetching the header plus the top R-tree levels in one request, as the Rust HTTP reader does).

Definition at line 199 of file header.cpp.


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