CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
stdNamespaceAdder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: RootAutoLibraryLoader
4 // Class : stdNamespaceAdder
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author:
10 // Created: Tue Dec 6 09:18:05 EST 2005
11 //
12 
13 // system include files
14 #include "boost/regex.hpp"
15 
16 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 namespace edm {
24  namespace root {
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  }
34  }
35 }
string format
Some error handling for the usage.
std::string stdNamespaceAdder(const std::string &iClassName)
string root
initialization
Definition: dbtoconf.py:70