EpIC 1.1.0
Monte Carlo generator for exclusive processes
Loading...
Searching...
No Matches
ContainerUtils.h
1/*
2 * Container.h
3 *
4 * Created on: Mar 24, 2021
5 * Author: Pawel Sznajder (NCBJ)
6 */
7
8#ifndef BEANS_CONTAINERS_CONTAINERUTILS_H_
9#define BEANS_CONTAINERS_CONTAINERUTILS_H_
10
11#include <ElementaryUtils/parameters/Parameters.h>
12#include <stddef.h>
13#include <string>
14#include <vector>
15
16namespace EPIC {
17
18namespace ContainerUtils {
19
23size_t findAndParseUInt(const std::string& className,
24 const ElemUtils::Parameters& data, const std::string& key,
25 bool peg = false);
26
30int findAndParseInt(const std::string& className,
31 const ElemUtils::Parameters& data, const std::string& key,
32 bool peg = false);
33
37double findAndParseDouble(const std::string& className,
38 const ElemUtils::Parameters& data, const std::string& key,
39 bool peg = false);
40
44std::vector<double> findAndParseVectorDouble(const std::string& className,
45 const ElemUtils::Parameters& data, const std::string& key,
46 size_t nElements,
47 bool peg = false);
48
52std::string findAndParseString(const std::string& className,
53 const ElemUtils::Parameters& data, const std::string& key);
54
58size_t stdStringToUInt(const std::string& className, const std::string& str,
59 bool peg = false);
60
64int stdStringToInt(const std::string& className, const std::string& str,
65 bool peg = false);
66
70double stdStringToDouble(const std::string& className, const std::string& str,
71 bool peg = false);
72}
73
74}
75
76#endif /* BEANS_CONTAINERS_CONTAINERUTILS_H_ */