CMS 3D CMS Logo

DDString.cc File Reference

#include "DetectorDescription/Core/interface/DDString.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDString &cons)
 output operator for printing ...


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDString cons 
)

output operator for printing ...

Definition at line 23 of file DDString.cc.

References DDBase< N, C >::isDefined(), DDBase< N, C >::name(), and DDString::value().

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 }


Generated on Tue Jun 9 17:52:36 2009 for CMSSW by  doxygen 1.5.4