CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/FWCore/Utilities/src/WrappedClassName.cc

Go to the documentation of this file.
00001 #include "FWCore/Utilities/interface/WrappedClassName.h"
00002 
00003 namespace edm {
00004   std::string
00005   wrappedClassName(std::string const& className) {
00006     std::string const wrapperBegin("edm::Wrapper<");
00007     std::string const wrapperEnd1(">");
00008     std::string const wrapperEnd2(" >");
00009     std::string const& wrapperEnd = (className[className.size()-1] == '>' ? wrapperEnd2 : wrapperEnd1);
00010     std::string wrapped;
00011     wrapped.reserve(wrapperBegin.size() + className.size() + wrapperEnd.size());
00012     wrapped += wrapperBegin;
00013     wrapped += className;
00014     wrapped += wrapperEnd;
00015     return wrapped;
00016   }
00017 }