Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Framework
Services
Optional
MyService.cc
Go to the documentation of this file.
1
#include "
MyService.h
"
2
3
#include "
fhiclcpp/ParameterSet.h
"
4
#include "
messagefacility/MessageLogger/MessageLogger.h
"
5
6
using
art::test::MyService
;
7
using
art::test::MyServiceInterface
;
8
using namespace
fhicl
;
9
10
MyService::MyService
(
ParameterSet
const
& pset)
11
{
12
mf::LogVerbatim
(
"DEBUG"
)
13
<<
"Begin MyService::MyService(ParameterSet const& pset)"
;
14
auto
const
val
= pset.
to_indented_string
();
15
mf::LogVerbatim
(
"DEBUG"
) <<
"Contents of parameter set:"
;
16
mf::LogVerbatim
(
"DEBUG"
) <<
""
;
17
mf::LogVerbatim
(
"DEBUG"
) <<
val
;
18
for
(
auto
const
&
key
: pset.
get_pset_names
()) {
19
mf::LogVerbatim
(
"DEBUG"
) <<
"key: "
<<
key
;
20
}
21
}
mf::LogVerbatim
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
Definition:
MessageLogger.h:216
val
Definition:
registry_via_id_test_2.cc:15
MyService.h
MyService::MyService
MyService(MyProvider *ptr=nullptr)
Definition:
ServiceUtil_test.cc:44
MessageLogger.h
ParameterSet.h
fhicl::ParameterSet::get_pset_names
std::vector< std::string > get_pset_names() const
Definition:
ParameterSet.cc:189
wirecell.dfp.graph.key
def key(type, name=None)
Definition:
graph.py:13
fhicl
Definition:
InputSourceFactory.h:7
fhicl::ParameterSet::to_indented_string
std::string to_indented_string() const
Definition:
ParameterSet.cc:466
testsqlite3.val
list val
Definition:
testsqlite3.py:13
MyService
MyServiceTemplate< MyProvider > MyService
Definition:
ServiceUtil_test.cc:55
art::test::MyServiceInterface
Definition:
MyServiceInterface.h:9
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11