IFDH_service.cc
Go to the documentation of this file.
1 #include "IFDH_service.h"
3 #include <iostream>
4 #include <vector>
5 
6 namespace ifdh_ns {
7 
9 {
10  std::vector<std::string> const cfgkeys = cfg.get_names();
11  std::string s;
12 
13  mf::LogVerbatim("test") << "IFDH constructor, got keys:";
14  for (auto const& key : cfgkeys) {
15  mf::LogVerbatim("test")<< key << ", ";
16  }
17 
18  if ( cfg.get_if_present("IFDH_BASE_URI", s) ) {
19  mf::LogVerbatim("test") << "IFDH: setting uri to:" << s << "\n";
20  this->set_base_uri(s);
21  } else {
22  mf::LogVerbatim("test") << "IFDH: didn't find a base uri...\n";
23  }
24  if ( cfg.get_if_present("debug", s) ) {
25  mf::LogVerbatim("test") << "IFDH: turning on debug\n";
26  this->set_debug(s);
27  }
28 }
29 
30 }
31 
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
std::string string
Definition: nybbler.cc:12
def key(type, name=None)
Definition: graph.py:13
#define DEFINE_ART_SERVICE(svc)
std::optional< T > get_if_present(std::string const &key) const
Definition: ParameterSet.h:224
std::vector< std::string > get_names() const
static QCString * s
Definition: config.cpp:1042
IFDH(fhicl::ParameterSet const &cfg)
Definition: IFDH_service.cc:8