Skip to main content

BatchLoadResult

BatchLoadResult

Result from loading multiple data objects from a single file. More…

#include <IFormatLoader.hpp>

Public Functions

Name
BatchLoadResult() =default
Default constructor.
size_t successCount() const
Get the number of successfully loaded data objects.
BatchLoadResult error(std::string const & msg)
Create an error result.
BatchLoadResult fromVector(std::vector< LoadResult > results)
Create a successful result from a vector of LoadResults.

Public Attributes

Name
std::vector< LoadResult > results
One LoadResult per loaded data object.
bool success
True if at least one object was loaded successfully.
std::string error_message
Error message if loading failed.

Detailed Description

struct BatchLoadResult;

Result from loading multiple data objects from a single file.

Used for batch loading operations where a single file may contain multiple data objects (e.g., multi-channel binary files, multi-series CSV files, DLC files with multiple bodyparts).

Public Functions Documentation

function BatchLoadResult

BatchLoadResult() =default

Default constructor.

function successCount

inline size_t successCount() const

Get the number of successfully loaded data objects.

Return: Count of results with success=true

function error

static inline BatchLoadResult error(
    std::string const & msg
)

Create an error result.

Parameters:

  • msg Error message describing the failure

Return: BatchLoadResult with success=false and error message set

function fromVector

static inline BatchLoadResult fromVector(
    std::vector< LoadResult > results
)

Create a successful result from a vector of LoadResults.

Parameters:

  • results Vector of individual LoadResults (moved)

Return: BatchLoadResult with success=true if results is non-empty

Public Attributes Documentation

variable results

std::vector< LoadResult > results;

One LoadResult per loaded data object.

variable success

bool success = false;

True if at least one object was loaded successfully.

variable error_message

std::string error_message;

Error message if loading failed.


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