Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
// $Id: stdNamespaceAdder.cc,v 1.2 2006/12/20 00:23:40 wmtan Exp $
12
//
13
14
// system include files
15
#include "boost/regex.hpp"
16
17
// user include files
18
#include "
FWCore/RootAutoLibraryLoader/src/stdNamespaceAdder.h
"
19
20
21
//
22
// constants, enums and typedefs
23
//
24
namespace
edm {
25
namespace
root
{
26
std::string
stdNamespaceAdder
(
const
std::string
& iClassName)
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
}
35
}
36
}
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::root::stdNamespaceAdder
std::string stdNamespaceAdder(const std::string &iClassName)
Definition:
stdNamespaceAdder.cc:26
cfg-viewer.format
def format
Definition:
cfg-viewer.py:817
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