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

Function object to open a storage container connection in the OXY-API. More...

#include <storage.hpp>

Public Member Functions

IStoragePtr operator() (connection_ptr const &conn) const
IStoragePtr operator() (connection_ptr const &conn, std::string const &section) const

Detailed Description

Function object to open a storage container connection in the OXY-API.

This function object provides two operator() overloads: one that takes a connection pointer and another that takes a connection pointer and a section name. Both overloads return an IStoragePtr representing the opened storage connection. It is designed to be used in a constexpr context for compile-time evaluation of storage opening operations.

Member Function Documentation

◆ operator()() [1/2]

IStoragePtr oxy::api::open_storage_fn::operator() ( connection_ptr const & conn) const
Parameters
conn- The connection pointer to the container.
Returns
An IStoragePtr representing the opened storage container connection.

◆ operator()() [2/2]

IStoragePtr oxy::api::open_storage_fn::operator() ( connection_ptr const & conn,
std::string const & section ) const
Parameters
conn- The connection pointer to the container.
section- The name of the section to open in the container.
Returns
An IStoragePtr representing the opened container connection for the specified section.