CMS 3D CMS Logo

Classes | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DetectorDescription/Core/interface/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().

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