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 26 of file stdNamespaceAdder.cc.

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

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