Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
fhiclcpp
fhiclcpp
test
fhicl-config_t.cc
Go to the documentation of this file.
1
#include "
cetlib/filepath_maker.h
"
2
#include "
fhiclcpp/ParameterSet.h
"
3
4
#include <cstdlib>
5
#include <iostream>
6
#include <string>
7
8
using namespace
fhicl
;
9
10
int
11
main
(
int
argc,
char
*
argv
[])
12
{
13
if
(argc != 2) {
14
std::cerr <<
"ERROR: expect exactly one argument.\n"
;
15
std::exit(1);
16
}
17
18
cet::filepath_lookup
policy(
"FHICL_FILE_PATH"
);
19
20
std::string
cfg_in(argv[1]);
21
auto
const
pset =
ParameterSet::make
(cfg_in, policy);
22
std::cout << pset.to_string() <<
std::endl
;
23
24
return
0;
25
}
main
int main(int argc, char *argv[])
Definition:
fhicl-config_t.cc:11
string
std::string string
Definition:
nybbler.cc:12
fhicl::ParameterSet::make
static ParameterSet make(intermediate_table const &tbl)
Definition:
ParameterSet.cc:68
freeze_graph.argv
argv
Definition:
freeze_graph.py:218
ParameterSet.h
cet::filepath_lookup
Definition:
filepath_maker.h:52
fhicl
Definition:
InputSourceFactory.h:7
filepath_maker.h
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11