CMS 3D CMS Logo

DDString.h File Reference

#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include <string>
#include <iostream>

Go to the source code of this file.

Classes

class  DDString
 a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More...

Functions

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


Function Documentation

std::ostream& operator<< ( std::ostream &  o,
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:31 2009 for CMSSW by  doxygen 1.5.4