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

Function object to merge metadata from one context into another. More...

#include <metadata.hpp>

Public Member Functions

void operator() (context_t const &to, std::string const &from) const
void operator() (context_t const &to, std::string const &from, std::string const &filter_path, std::string const &filter_schema) const

Detailed Description

Function object to merge metadata from one context into another.

This function object provides two operator() overloads: one that takes a destination context and a source context, and another that takes a destination context, a source context, a filter path, and a filter schema. Both overloads perform the merging of metadata from the source context into the destination context, optionally applying filters. It is designed to be used in a constexpr context for compile-time evaluation of metadata merging operations.

Member Function Documentation

◆ operator()() [1/2]

void oxy::api::metadata::merge_fn::operator() ( context_t const & to,
std::string const & from ) const
Parameters
to- The destination context for merging metadata.
from- The source context from which to merge metadata.

◆ operator()() [2/2]

void oxy::api::metadata::merge_fn::operator() ( context_t const & to,
std::string const & from,
std::string const & filter_path,
std::string const & filter_schema ) const
Parameters
to- The destination context for merging metadata.
from- The source context from which to merge metadata.
filter_path- The path to the filter to apply during merging.
filter_schema- The schema of the filter to apply during merging.