Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IDBNodeProvider.h
Go to the documentation of this file.
1#ifndef INODEPROVIDER_H
2#define INODEPROVIDER_H
3
4#include <memory>
5#include <filesystem>
6
7#include "DBNode.h"
8
9namespace fs = std::filesystem;
10
32protected:
33 fs::path src_path;
34
35public:
41 IDBNodeProvider(fs::path src_path_) : src_path(src_path_) {}
42
43 virtual ~IDBNodeProvider() = default;
44
58 virtual std::shared_ptr<DBNode> provide_db_as_node() = 0;
59};
60
61#endif // INODEPROVIDER_H
Hierarchical key–value tree with JSON/YAML serialization.
Abstract provider of Node-based views of external data.
virtual std::shared_ptr< DBNode > provide_db_as_node()=0
Returns the underlying data as a DBNode tree.
virtual ~IDBNodeProvider()=default
IDBNodeProvider(fs::path src_path_)
Constructs a provider bound to a given source path.