1 #ifndef __PSET_UTILS_CXX__
2 #define __PSET_UTILS_CXX__
11 std::ifstream filestrm(fname.c_str());
15 while(std::getline(filestrm, line)) {
17 if(line.empty())
continue;
19 std::stringstream linestrm(line);
20 std::string valid_line;
22 std::getline(linestrm, valid_line,
'#');
24 if(valid_line.empty())
continue;
26 contents +=
" " + valid_line;
PSet CreatePSetFromFile(std::string fname, std::string cfg_name)
Given a configuration file (full path), create and return flashmatch::PSet.
std::string ConfigFile2String(std::string fname)
Given a configuration string, format to create flashmatch::PSet.
Utility functions in Base/PSet.
A nested configuration parameter set holder for flashmatch framework.