Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:57

0001 #include "DetectorDescription/Core/interface/DDString.h"
0002 
0003 #include <utility>
0004 
0005 DDString::DDString() : DDBase<DDName, std::unique_ptr<std::string>>() {}
0006 
0007 DDString::DDString(const DDName& name) : DDBase<DDName, std::unique_ptr<std::string>>() { create(name); }
0008 
0009 DDString::DDString(const DDName& name, std::unique_ptr<std::string> vals) { create(name, std::move(vals)); }
0010 
0011 std::ostream& operator<<(std::ostream& os, const DDString& cons) {
0012   os << "DDString name=" << cons.name();
0013 
0014   if (cons.isDefined().second) {
0015     os << " val=" << cons.value();
0016   } else {
0017     os << " constant is not yet defined, only declared.";
0018   }
0019   return os;
0020 }