Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:14

0001 #include "FWCore/Utilities/interface/WrappedClassName.h"
0002 
0003 namespace edm {
0004   std::string wrappedClassName(std::string const& className) {
0005     std::string const wrapperBegin("edm::Wrapper<");
0006     std::string const wrapperEnd1(">");
0007     std::string const wrapperEnd2(" >");
0008     std::string const& wrapperEnd = (className[className.size() - 1] == '>' ? wrapperEnd2 : wrapperEnd1);
0009     std::string wrapped;
0010     wrapped.reserve(wrapperBegin.size() + className.size() + wrapperEnd.size());
0011     wrapped += wrapperBegin;
0012     wrapped += className;
0013     wrapped += wrapperEnd;
0014     return wrapped;
0015   }
0016 }  // namespace edm