CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/DetectorDescription/Core/src/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().

{
  os << "DDString name=" << cons.name(); 
  
  if(cons.isDefined().second) {
    os << " val=" << cons.value();
  }
  else {
    os << " constant is not yet defined, only declared.";
  }  
  return os;
}