openPMD-api
 
Loading...
Searching...
No Matches
openPMD::json::MatcherPerBackend Class Reference

Matcher for dataset configurations per backend. More...

#include <JSONMatcher.hpp>

Public Member Functions

 MatcherPerBackend ()
 For default construction.
 
 MatcherPerBackend (std::string backendName, TracingJSON config)
 Initialize one backend's JSON matcher from its configuration.
 
auto get (std::string const &datasetPath) const -> nlohmann::json const &
 Get the JSON config associated with a regex pattern.
 

Public Attributes

std::string backendName
 

Detailed Description

Matcher for dataset configurations per backend.

Constructor & Destructor Documentation

◆ MatcherPerBackend()

openPMD::json::MatcherPerBackend::MatcherPerBackend ( std::string backendName,
TracingJSON config )

Initialize one backend's JSON matcher from its configuration.

This constructor will parse the given config. It will distinguish between ordinary openPMD JSON configurations and dataset-specific configurations.

Parameters
backendNameThe backend's JSON key.
configThe JSON configuration for one backend. E.g. for ADIOS2, this will be the sub-object/array found under config["adios2"]["dataset"].

Member Function Documentation

◆ get()

nlohmann::json const & openPMD::json::MatcherPerBackend::get ( std::string const & datasetPath) const -> nlohmann::json const &

Get the JSON config associated with a regex pattern.

Parameters
datasetPathThe regex.
Returns
The matched JSON configuration, as a string.

The documentation for this class was generated from the following files: