00001
00002
00003 #include "fhiclcpp/ParameterSet.h"
00004
00005 #include <iostream>
00006 #include <iomanip>
00007 #include "artdaq/Application/LoadParameterSet.hh"
00008
00009 namespace bpo = boost::program_options;
00010
00011
00012 int main(int argc, char * argv[])
00013 {
00014 auto pset = LoadParameterSet(argc, argv);
00015
00016 for(auto& p : pset.get_all_keys()) {
00017 std::cout << "Key " << p << " has string value " << pset.get<std::string>(p)
00018 << " and uint64_t value " << std::to_string(pset.get<uint64_t>(p))
00019 << " ( hex 0x" << std::hex << pset.get<uint64_t>(p) << " )."
00020 << std::endl;
00021 }
00022 }