DetectorDescription
Core
interface
DDString.h
Go to the documentation of this file.
1
#ifndef DDString_h
2
#define DDString_h
3
4
#include "
DetectorDescription/Core/interface/DDBase.h
"
5
#include "
DetectorDescription/Core/interface/DDName.h
"
6
#include <string>
7
#include <iostream>
8
#include <memory>
9
10
class
DDString
;
11
13
std::ostream&
operator<<
(std::ostream&
o
,
const
DDString
& cons);
14
16
class
DDString
:
public
DDBase
<DDName, std::unique_ptr<std::string> > {
17
public
:
19
DDString
();
20
22
DDString
(
const
DDName
&
name
);
23
25
DDString
(
const
DDName
&
name
, std::unique_ptr<std::string>
value
);
26
28
const
std::string
&
value
()
const
{
return
rep
(); }
29
31
operator
std::string
()
const
{
return
rep
(); }
32
};
33
34
#endif
DDBase.h
DDName
DDName is used to identify DDD entities uniquely.
Definition:
DDName.h:17
DDString::DDString
DDString()
an uninitialized constant; one can assign an initialized constant to make it valid
Definition:
DDString.cc:5
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
DDBase< DDName, std::unique_ptr< std::string > >::name
const DDName & name() const
Definition:
DDBase.h:59
DDBase< DDName, std::unique_ptr< std::string > >::rep
const DDI::rep_traits< DDName, std::unique_ptr< std::string > >::reference rep() const
Definition:
DDBase.h:65
value
Definition:
value.py:1
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
DDString::value
const std::string & value() const
return the first stored value; does not check boundaries!
Definition:
DDString.h:28
DDName.h
DDString
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector>
Definition:
DDString.h:16
DDBase
Definition:
DDBase.h:10
operator<<
std::ostream & operator<<(std::ostream &o, const DDString &cons)
output operator for printing ...
Definition:
DDString.cc:11
Generated for CMSSW Reference Manual by
1.8.16