Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
JsonTools.h
Go to the documentation of this file.
1 #ifndef ICHiggsTauTau_Utilities_JsonTools_h
2 #define ICHiggsTauTau_Utilities_JsonTools_h
3 
4 #include <vector>
5 #include <string>
6 #include "Utilities/interface/json.h"
7 
8 namespace ic {
14 Json::Value ExtractJsonFromFile(std::string const& file);
15 
22 Json::Value ExtractJsonFromString(std::string const& str);
23 
35 Json::Value ExtractJsonFromFlatString(std::string const& str);
36 
37 
47 void UpdateJson(Json::Value& a, Json::Value const& b);
48 
64 Json::Value MergedJson(int argc, char* argv[]);
65 
76 Json::Value MergedJson(std::vector<std::string> const& vec);
77 }
78 #endif
Json::Value MergedJson(int argc, char *argv[])
Create a single merged Json::Value from a mixture of json files and json-formatted strings...
Definition: JsonTools.cc:128
Json::Value ExtractJsonFromFlatString(std::string const &str)
Extracts a Json::Value from the given input string.
Definition: JsonTools.cc:29
void UpdateJson(Json::Value &a, Json::Value const &b)
Updates the values in one json from the values in another.
Definition: JsonTools.cc:117
Json::Value ExtractJsonFromString(std::string const &str)
Extracts a Json::Value from the given input string.
Definition: JsonTools.cc:22
Definition: CaloJet.hh:9
Json::Value ExtractJsonFromFile(std::string const &file)
Extracts a Json::Value from the specified input file.
Definition: JsonTools.cc:10