LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
fhicl_key.h
Go to the documentation of this file.
1
#ifndef art_Framework_Art_detail_fhicl_key_h
2
#define art_Framework_Art_detail_fhicl_key_h
3
4
// Class for concatenating FHiCL names into a dot-delimited FHiCL key
5
6
#include <string>
7
8
namespace
art
{
9
namespace
detail {
10
11
template
<
typename
T>
12
std::enable_if_t<std::is_convertible<T, std::string>::value
, std::string>
13
fhicl_key
(T
const
& name)
14
{
15
return
name;
16
}
17
18
template
<
typename
H,
typename
... T>
19
std::enable_if_t<std::is_convertible<H, std::string>::value
, std::string>
20
fhicl_key
(H
const
& hname, T
const
&... tnames)
21
{
22
std::string
const
head{hname};
23
return
head.empty() ?
fhicl_key
(tnames...) :
24
head +
"."
+
fhicl_key
(tnames...);
25
}
26
}
27
}
28
29
#endif
/* art_Framework_Art_detail_fhicl_key_h */
30
31
// Local variables:
32
// mode: c++
33
// End:
art::detail::fhicl_key
std::enable_if_t< std::is_convertible< T, std::string >::value, std::string > fhicl_key(T const &name)
Definition:
fhicl_key.h:13
fhicl::detail::atom::value
std::string value(boost::any const &)
Definition:
printing_helpers.cc:97
art
HLT enums.
Definition:
ServiceProviderWrappers.h:36
art
Framework
Art
detail
fhicl_key.h
Generated on Wed Dec 12 2018 14:42:31 for LArSoft by
1.8.11