OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::api::import_contents_fn Struct Reference

Function object to import contents from a file into a storage container in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

contents_t operator() (std::filesystem::path const &file) const

Detailed Description

Function object to import contents from a file into a storage container in the OXY-API.

This function object provides an operator() that takes a file path and imports the contents from the specified file into the storage container. It returns the imported contents. It is designed to be used in a constexpr context for compile-time evaluation of contents import operations.

Member Function Documentation

◆ operator()()

contents_t oxy::api::import_contents_fn::operator() ( std::filesystem::path const & file) const
Parameters
file- The file path from which to import contents into the storage container.
Returns
The imported contents from the specified file.