Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
examples/path_provider_example.cpp

Example usage of classes implementing IPathProvider (APIAdapter, MartyAdapter).

Example usage of classes implementing IPathProvider (APIAdapter, MartyAdapter).

#include "APIAdapter.h"
#include "MartyAdapter.h"
#include <iostream>
int main() {
std::cout << "LHA file path: " << api.get_path(APIPath::LHA_PATH) << std::endl;
MartyAdapter marty;
std::cout << "Marty template directory: " << marty.get_path(MartyPath::TEMPLATE_DIR) << std::endl;
return 0;
}
High-level monitoring and access adapter for parameter and path information.
@ LHA_PATH
Path to the active LHA file.
Core-side adapter giving MARTY access to configuration and managed paths.
Concrete adapter combining monitoring and path providing functionalities.
Definition APIAdapter.h:54
fs::path get_path(APIPath path_name) override
Retrieves a specific filesystem path exposed by APIPath.
fs::path get_path(MartyPath path_name) override
Retrieves a required MARTY-related path.