Skip to main content

CapnProtoLoader

CapnProtoLoader

CapnProto format data loader. More…

#include <CapnProtoLoader.hpp>

Inherits from DataLoader

Public Functions

Name
CapnProtoLoader()
virtual std::string getFormatId() const override
Get the format identifier (e.g., “capnp”, “hdf5”, “binary”).
virtual bool supportsDataType(DM_DataType data_type) const override
Check if this loader supports the given data type.
virtual LoadResult loadData(std::string const & file_path, DM_DataType data_type, nlohmann::json const & config) const override
Load data from file.

Additional inherited members

Public Functions inherited from DataLoader

Name
virtual ~DataLoader() =default

Detailed Description

class CapnProtoLoader;

CapnProto format data loader.

This loader handles loading data stored in CapnProto format. Currently supports LineData, with extensibility for other data types.

Public Functions Documentation

function CapnProtoLoader

CapnProtoLoader()

function getFormatId

virtual std::string getFormatId() const override

Get the format identifier (e.g., “capnp”, “hdf5”, “binary”).

Reimplements: DataLoader::getFormatId

function supportsDataType

virtual bool supportsDataType(
    DM_DataType data_type
) const override

Check if this loader supports the given data type.

Reimplements: DataLoader::supportsDataType

function loadData

virtual LoadResult loadData(
    std::string const & file_path,
    DM_DataType data_type,
    nlohmann::json const & config
) const override

Load data from file.

Parameters:

  • file_path Path to the data file
  • data_type The type of data to load
  • config JSON configuration from the loading config

Return: LoadResult containing the loaded data or error information

Reimplements: DataLoader::loadData


Updated on 2026-11-13 at 20:25:41 +0000