CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
edm::root Namespace Reference

Classes

class  FWLiteDelayedReader
 
struct  TFWLiteSelectorMembers
 

Functions

std::string stdNamespaceAdder (const std::string &iClassName)
 

Function Documentation

std::string edm::root::stdNamespaceAdder ( const std::string &  iClassName)

Definition at line 25 of file stdNamespaceAdder.cc.

References alignCSCRings::e, cmsPerfStripChart::format, and AlCaHLTBitMon_QueryRunRegistry::string.

26  {
27  //adds the std:: prefix to vector, string, map, list or deque if it is not
28  // already there
29  static const boost::regex e("(^|[^[:alnum:]_:])((?:vector)|(?:string)|(?:map)|(?:list)|(?:deque))");
30  const std::string format("\\1std::\\2");
31 
32  return regex_replace(iClassName, e, format, boost::match_default | boost::format_sed);
33  }
string format
Some error handling for the usage.