Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Utilities
src
WrappedClassName.cc
Go to the documentation of this file.
1
#include "
FWCore/Utilities/interface/WrappedClassName.h
"
2
3
namespace
edm {
4
std::string
5
wrappedClassName
(
std::string
const
&
className
) {
6
std::string
const
wrapperBegin(
"edm::Wrapper<"
);
7
std::string
const
wrapperEnd1(
">"
);
8
std::string
const
wrapperEnd2(
" >"
);
9
std::string
const
& wrapperEnd = (className[className.size()-1] ==
'>'
? wrapperEnd2 : wrapperEnd1);
10
std::string
wrapped;
11
wrapped.reserve(wrapperBegin.size() + className.size() + wrapperEnd.size());
12
wrapped += wrapperBegin;
13
wrapped +=
className
;
14
wrapped += wrapperEnd;
15
return
wrapped;
16
}
17
}
WrappedClassName.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::wrappedClassName
std::string wrappedClassName(std::string const &iFullName)
Definition:
WrappedClassName.cc:5
className
std::string className(const T &t)
Definition:
ClassName.h:30
Generated for CMSSW Reference Manual by
1.8.5