CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDString.h
Go to the documentation of this file.
1 #ifndef DDString_h
2 #define DDString_h
3 
6 #include <string>
7 #include <iostream>
8 
9 class DDString;
10 
11 
13 std::ostream & operator<<(std::ostream & o, const DDString & cons);
14 
16 class DDString : public DDBase<DDName, std::string * >
17 {
18 public:
20  DDString();
21 
23  DDString(const DDName & name);
24 
26  DDString(const DDName & name, std::string* value);
27 
29  const std::string & value() const { return rep(); }
30 
32  operator std::string() const { return rep(); }
33 };
34 
35 #endif
Definition: DDBase.h:10
const DDI::rep_traits< DDName, std::string * >::reference rep() const
Definition: DDBase.h:84
const DDName & name() const
Definition: DDBase.h:78
const std::string & value() const
return the first stored value; does not check boundaries!
Definition: DDString.h:29
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:14
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
a named constant corresponding to the DDL-XML tag &lt;Constant&gt; and &lt;ConstantsVector&gt; ...
Definition: DDString.h:16
DDString()
an uninitialized constant; one can assign an initialized constant to make it valid ...
Definition: DDString.cc:9