CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DetectorDescription/Core/src/DDString.cc

Go to the documentation of this file.
00001 #include "DetectorDescription/Core/interface/DDString.h"
00002 //#include "DetectorDescription/Base/interface/DDException.h"
00003 
00004 // Evaluator 
00005 //#include "DetectorDescription/ExprAlgo/interface/ExprEvalSingleton.h"
00006 
00007 
00008 
00009 DDString::DDString() : DDBase<DDName,std::string*>() { }
00010 
00011 
00012 DDString::DDString(const DDName & name) : DDBase<DDName,std::string*>() 
00013 {
00014   prep_ = StoreT::instance().create(name);
00015 }
00016 
00017 DDString::DDString(const DDName & name,std::string* vals)
00018 {
00019   prep_ = StoreT::instance().create(name,vals);
00020 }  
00021 
00022 
00023 std::ostream & operator<<(std::ostream & os, const DDString & cons)
00024 {
00025   os << "DDString name=" << cons.name(); 
00026   
00027   if(cons.isDefined().second) {
00028     os << " val=" << cons.value();
00029   }
00030   else {
00031     os << " constant is not yet defined, only declared.";
00032   }  
00033   return os;
00034 }
00035 
00036