3 #include "fhiclcpp/ParameterSet.h"
7 #include "artdaq/Application/LoadParameterSet.hh"
9 namespace bpo = boost::program_options;
11 int main(
int argc,
char* argv[])
15 auto pset = LoadParameterSet<Config>(argc, argv,
"test_fhicl",
"A test application to ensure that FHiCL numeric values are converted properly to/from hexadecimal values");
17 for (
auto& p : pset.get_all_keys())
19 std::cout <<
"Key " << p <<
" has string value " << pset.get<std::string>(p)
20 <<
" and uint64_t value " << pset.get<uint64_t>(p)
21 <<
" ( hex 0x" << std::hex << pset.get<uint64_t>(p) <<
" )."