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

Function object to create an entry in the storage container in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

entry_t operator() (oid_t const &oid, mime_t const &mime, metadata_t const &metadata) const

Detailed Description

Function object to create an entry in the storage container in the OXY-API.

This function object provides an operator() that takes an OID, MIME type, and metadata, and creates an entry in the storage container. It returns the created entry. It is designed to be used in a constexpr context for compile-time evaluation of entry creation operations.

Member Function Documentation

◆ operator()()

entry_t oxy::api::make_entry_fn::operator() ( oid_t const & oid,
mime_t const & mime,
metadata_t const & metadata ) const
Parameters
oid- The OID of the entry to create in the storage container.
mime- The MIME type of the entry to create in the storage container.
metadata- The metadata associated with the entry to create in the storage container.
Returns
The created entry in the storage container.