Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
RootAutoLibraryLoader
src
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
17
#include "
FWCore/RootAutoLibraryLoader/src/stdNamespaceAdder.h
"
18
19
20
//
21
// constants, enums and typedefs
22
//
23
namespace
edm {
24
namespace
root
{
25
std::string
stdNamespaceAdder
(
const
std::string
& iClassName)
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
}
cmsPerfStripChart.format
string format
Some error handling for the usage.
Definition:
cmsPerfStripChart.py:290
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::root::stdNamespaceAdder
std::string stdNamespaceAdder(const std::string &iClassName)
Definition:
stdNamespaceAdder.cc:25
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
stdNamespaceAdder.h
dbtoconf.root
string root
initialization
Definition:
dbtoconf.py:70
Generated for CMSSW Reference Manual by
1.8.5