All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PSetUtils.h
Go to the documentation of this file.
1 /**
2  * \file PSetUtils.h
3  *
4  * \ingroup PSet
5  *
6  * \brief Utility functions in Base/PSet
7  *
8  * @author Kazu - Nevis 2015
9  */
10 
11 /** \addtogroup PSet
12 
13  @{*/
14 
15 #ifndef __PSET_UTILS_H__
16 #define __PSET_UTILS_H__
17 
18 #include "PSet.h"
19 
20 namespace flashmatch {
21 
22  /// Given a configuration string, format to create flashmatch::PSet
23  //std::string FormatPSetString(std::string fname);
24  /// Given a configuration file (full path), read & parse contents to create flashmatch::PSet
25  std::string ConfigFile2String(std::string fname);
26  /// Given a configuration file (full path), create and return flashmatch::PSet
27  PSet CreatePSetFromFile(std::string fname,std::string cfg_name="cfg");
28 
29 }
30 
31 #endif
32 /** @} */ // end of doxygen group
PSet CreatePSetFromFile(std::string fname, std::string cfg_name)
Given a configuration file (full path), create and return flashmatch::PSet.
Definition: PSetUtils.cxx:32
string fname
Definition: demo.py:5
std::string ConfigFile2String(std::string fname)
Given a configuration string, format to create flashmatch::PSet.
Definition: PSetUtils.cxx:9
Class def header for a class flashmatch::PSet.