File indexing completed on 2024-04-06 12:05:24
0001 #ifndef DDString_h
0002 #define DDString_h
0003
0004 #include "DetectorDescription/Core/interface/DDBase.h"
0005 #include "DetectorDescription/Core/interface/DDName.h"
0006 #include <string>
0007 #include <iostream>
0008 #include <memory>
0009
0010 class DDString;
0011
0012
0013 std::ostream& operator<<(std::ostream& o, const DDString& cons);
0014
0015
0016 class DDString : public DDBase<DDName, std::unique_ptr<std::string> > {
0017 public:
0018
0019 DDString();
0020
0021
0022 DDString(const DDName& name);
0023
0024
0025 DDString(const DDName& name, std::unique_ptr<std::string> value);
0026
0027
0028 const std::string& value() const { return rep(); }
0029
0030
0031 operator std::string() const { return rep(); }
0032 };
0033
0034 #endif