Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
canvas
canvas
Utilities
WrappedClassName.cc
Go to the documentation of this file.
1
#include "
canvas/Utilities/WrappedClassName.h
"
2
3
namespace
art
{
4
std::string
5
wrappedClassName
(
std::string
const
&
className
)
6
{
7
static
std::string
const
wrapperBegin(
"art::Wrapper<"
);
8
static
std::string
const
wrapperEnd1(
">"
);
9
static
std::string
const
wrapperEnd2(
" >"
);
10
std::string
const
& wrapperEnd =
11
(className[className.size() - 1] ==
'>'
? wrapperEnd2 : wrapperEnd1);
12
std::string
wrapped;
13
wrapped.reserve(wrapperBegin.size() + className.size() + wrapperEnd.size());
14
wrapped += wrapperBegin;
15
wrapped +=
className
;
16
wrapped += wrapperEnd;
17
return
wrapped;
18
}
19
}
string
std::string string
Definition:
nybbler.cc:12
art::wrappedClassName
std::string wrappedClassName(std::string const &className)
Definition:
WrappedClassName.cc:5
WrappedClassName.h
className
static QCString className
Definition:
declinfo.cpp:669
art
Definition:
BasicOptionsHandler.h:9
Generated by
1.8.11