gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
yaml_node_utility.hpp File Reference

Wrapper functionality to get yaml nodes with some extras. More...

#include <string>
#include <iostream>
#include <limits>
#include <cmath>
#include <cstring>
#include "yaml-cpp/yaml.h"
#include "gambit/Utils/standalone_error_handlers.hpp"
Include dependency graph for yaml_node_utility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Gambit
 TODO: see if we can use this one:
 
 Gambit::NodeUtility
 

Functions

template<class TYPE >
TYPE Gambit::NodeUtility::safeIntegerTypeCast (const std::string &s)
 Wrapper for integer type casts from a double in string representation. More...
 
void Gambit::NodeUtility::autoExpandEnvironmentVariables (std::string &text)
 Expand environment variables in the given string. More...
 
void Gambit::NodeUtility::removeCharsFromString (std::string &text, const char *charsToRemove)
 Remove characters in the given string. More...
 
std::string Gambit::NodeUtility::expandEnvironmentVariables (const std::string &input)
 Leave input alone and return new string, which has environment variables substituted and escpae characters removed. More...
 
template<class TYPE >
TYPE Gambit::NodeUtility::getNode (const YAML::Node node)
 Wrapper for reading the node for a given type. More...
 
template<>
int Gambit::NodeUtility::getNode< int > (const YAML::Node node)
 Allows to read scientific notation integer numbers. More...
 
template<>
unsigned int Gambit::NodeUtility::getNode< unsigned int > (const YAML::Node node)
 See int specialization. More...
 
template<>
long Gambit::NodeUtility::getNode< long > (const YAML::Node node)
 See int specialization. More...
 
template<>
unsigned long Gambit::NodeUtility::getNode< unsigned long > (const YAML::Node node)
 See int specialization. More...
 
template<>
long long Gambit::NodeUtility::getNode< long long > (const YAML::Node node)
 See int specialization. More...
 
template<>
unsigned long long Gambit::NodeUtility::getNode< unsigned long long > (const YAML::Node node)
 See int specialization. More...
 
template<>
std::string Gambit::NodeUtility::getNode< std::string > (const YAML::Node node)
 Read string and expand environment variables of the type ${MYVAR}. More...
 

Detailed Description

Wrapper functionality to get yaml nodes with some extras.


Authors (add name and date if you modify):

Author
Markus Prim (marku.nosp@m.s.pr.nosp@m.im@ki.nosp@m.t.ed.nosp@m.u)
Date
2020 April

Definition in file yaml_node_utility.hpp.