DatabaseSupport.h
Go to the documentation of this file.
1 #ifndef fhiclcpp_DatabaseSupport_h
2 #define fhiclcpp_DatabaseSupport_h
3 
4 #include <string>
5 #include <vector>
6 
7 #include "fhiclcpp/fwd.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 typedef struct sqlite3 sqlite3;
13 #ifdef __cplusplus
14 }
15 #endif
16 
17 namespace fhicl {
18  // Given a ParameterSet, return two vectors of strings:
19  //
20  // records: will contain the "database form" of top, and of all
21  // nested ParameterSets.
22  //
23  // hashes: will contain the (string form) of the hash for each
24  // ParameterSet in 'records', in the same order.
26  std::vector<std::string>& records,
27  std::vector<std::string>& hashes);
28 
29  // Read the file 'filename', creating a ParameterSet, and then call
30  // decompose_parameterset using that ParameterSet.
32  std::vector<std::string>& records,
33  std::vector<std::string>& hashes);
34 
35  // Read the file 'filename', creating a ParameterSet, and then fill
36  // the given empty sqlite3 database with all the ParameterSets created
37  // by the parsing.
39 }
40 
41 #endif /* fhiclcpp_DatabaseSupport_h */
42 
43 // Local Variables:
44 // mode: c++
45 // End:
std::string string
Definition: nybbler.cc:12
string filename
Definition: train.py:213
void parse_file_and_fill_db(std::string const &filename, sqlite3 *db)
void decompose_parameterset(fhicl::ParameterSet const &top, std::vector< std::string > &records, std::vector< std::string > &hashes)
struct sqlite3 sqlite3
void decompose_fhicl(std::string const &filename, std::vector< std::string > &records, std::vector< std::string > &hashes)