Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
MartyPathProxy.cpp
Go to the documentation of this file.
1#include "MartyPathProxy.h"
2
3#include <stdexcept>
4#include <utility>
5
6MartyPathProxy::MartyPathProxy(std::shared_ptr<IMartyPathAdapter> adapter)
7 : adapter_(std::move(adapter)) {
8 if (!adapter_) {
9 throw std::invalid_argument("MartyPathProxy requires a non-null IMartyPathAdapter.");
10 }
11}
12
13fs::path MartyPathProxy::get_path(MartyPath path_name) const {
14 return adapter_->get_path(path_name);
15}
16
17std::optional<fs::path> MartyPathProxy::get_optional_path(MartyPath path_name) const {
18 return adapter_->get_optional_path(path_name);
19}
MartyPath
Enumerates MARTY-related filesystem resources.
fs::path get_path(MartyPath path_name) const override
std::optional< fs::path > get_optional_path(MartyPath path_name) const override
MartyPathProxy(std::shared_ptr< IMartyPathAdapter > adapter)
Hash specialization for SymbolId<Tag>.
Definition BlockName.h:353