Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Services
System
detail
SAMMetadataTranslators.h
Go to the documentation of this file.
1
#ifndef art_Framework_Services_System_detail_SAMMetadataTranslators_h
2
#define art_Framework_Services_System_detail_SAMMetadataTranslators_h
3
4
#include <map>
5
#include <string>
6
7
namespace
art
{
8
namespace
detail
{
9
10
using
new_t
=
std::string
;
11
using
old_t
=
std::string
;
12
13
inline
std::map<old_t, new_t>
14
oldToNewName
()
15
{
16
return
{{
"fileType"
,
"file_type"
},
17
{
"dataTier"
,
"data_tier"
},
18
{
"streamName"
,
"data_stream"
},
19
{
"runType"
,
"run_type"
}};
20
}
21
22
//==============================================================================
23
24
// Translator
25
struct
OldToNew
{
26
std::string
27
operator()
(
std::string
const
&
name
)
const
28
{
29
auto
const
& transMap =
oldToNewName
();
30
auto
it = transMap.find(name);
31
return
it != transMap.cend() ? it->second :
name
;
32
}
33
};
34
35
}
// namespace detail
36
}
// namespace art
37
38
#endif
/* art_Framework_Services_System_detail_SAMMetadataTranslators_h */
39
40
// Local variables:
41
// mode: c++
42
// End:
name
static QCString name
Definition:
declinfo.cpp:673
string
std::string string
Definition:
nybbler.cc:12
art::detail::OldToNew
Definition:
SAMMetadataTranslators.h:25
art::detail::old_t
std::string old_t
Definition:
SAMMetadataTranslators.h:11
detail
Definition:
includer.cc:28
art::detail::oldToNewName
std::map< old_t, new_t > oldToNewName()
Definition:
SAMMetadataTranslators.h:14
art::detail::OldToNew::operator()
std::string operator()(std::string const &name) const
Definition:
SAMMetadataTranslators.h:27
art
Definition:
BasicOptionsHandler.h:9
art::detail::new_t
std::string new_t
Definition:
SAMMetadataTranslators.h:10
Generated by
1.8.11