/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/db/include/RAT/DBJsonLoader.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/db/include/RAT/DBJsonLoader.hh Source File
Ratpac-two
DBJsonLoader.hh
1 #ifndef __RAT_DBJsonLoader__
2 #define __RAT_DBJsonLoader__
3 
4 #include <RAT/json.hh>
5 #include <iostream>
6 #include <string>
7 #include <vector>
8 
9 namespace RAT {
10 
11 class DBTable;
12 
13 /* A $#%!! class with static functions to make rootcint happy */
14 class DBJsonLoader {
15  public:
17  static std::vector<RAT::DBTable *> parse(const std::string &filename);
18 
20  static std::vector<RAT::DBTable *> parseString(const std::string &data);
21 
23  static RAT::DBTable *convertTable(json::Value &jsonDoc);
24 };
25 
26 } // namespace RAT
27 
28 #endif
Definition: DBJsonLoader.hh:14
static std::vector< RAT::DBTable * > parseString(const std::string &data)
Definition: DBJsonLoader.cc:17
static std::vector< RAT::DBTable * > parse(const std::string &filename)
Definition: DBJsonLoader.cc:9
static RAT::DBTable * convertTable(json::Value &jsonDoc)
Definition: DBJsonLoader.cc:33
Definition: DBTable.hh:25
Definition: json.hh:59
Definition: CCCrossSecMessenger.hh:29