Thermal-FIST 1.6
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
Utility.h
Go to the documentation of this file.
1/*
2 * Thermal-FIST package
3 *
4 * Copyright (c) 2019-2025 Volodymyr Vovchenko
5 *
6 * GNU General Public License (GPLv3 or later)
7 */
8#ifndef UTILITY_H
9#define UTILITY_H
10
17
18#include <string>
19#include <map>
20
21namespace thermalfist {
22
23 class Disclaimer {
24
25 public:
26 static bool PrintDisclaimer();
27
28 static bool DisclaimerPrinted;
29
30 };
31
32 // Read parameters from a file
52 std::map<std::string, std::string> ReadParametersFromFile(const std::string& filename, const std::map<std::string, std::string>& params = {});
53
68 void ParametersFromArgs(int argc, char* argv[], std::map<std::string, std::string>& params);
69
70 // For C99 compatibility
71 long long stringToLongLong(const std::string &str);
72
73 double get_wall_time();
74
75 double get_cpu_time();
76
77} // namespace thermalfist
78
79#endif
map< string, double > params
static bool PrintDisclaimer()
Definition Utility.cpp:49
static bool DisclaimerPrinted
Definition Utility.h:28
The main namespace where all classes and functions of the Thermal-FIST library reside.
Definition CosmicEoS.h:9
double get_cpu_time()
Definition Utility.cpp:243
long long stringToLongLong(const std::string &str)
std::map< std::string, std::string > ReadParametersFromFile(const std::string &filename, const std::map< std::string, std::string > &params={})
Definition Utility.cpp:161
double get_wall_time()
Definition Utility.cpp:235
void ParametersFromArgs(int argc, char *argv[], std::map< std::string, std::string > &params)
Definition Utility.cpp:189