PRISM
 v0.0.0
Loading...
Searching...
No Matches
YamlHelper.h
1#pragma once
2#include <string>
3#include <vector>
4#include "yaml-cpp/yaml.h"
5
6namespace prism
7{
8
9template <typename T>
10T defaultValue();
11
12template <typename T>
13std::string getTypeName();
14
15bool paramProvided(const std::string & param, const YAML::Node & node, const bool required);
16
17template <typename T>
18std::vector<T> getParams(const std::string & param, const YAML::Node & node, const bool required);
19template <typename T>
20T getParam(const std::string & param, const YAML::Node & node, const bool required);
21
22const std::vector<std::string> getExtraParams(const YAML::Node & node,
23 const std::vector<std::string> & allowed);
24}