CMS 3D CMS Logo

Functions
DDString.cc File Reference
#include "DetectorDescription/Core/interface/DDString.h"
#include <utility>
#include "DetectorDescription/Core/interface/Store.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

output operator for printing ...

Definition at line 19 of file DDString.cc.

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

20 {
21  os << "DDString name=" << cons.name();
22 
23  if(cons.isDefined().second) {
24  os << " val=" << cons.value();
25  }
26  else {
27  os << " constant is not yet defined, only declared.";
28  }
29  return os;
30 }
def_type isDefined() const
Definition: DDBase.h:110
const N & name() const
Definition: DDBase.h:78
const std::string & value() const
return the first stored value; does not check boundaries!
Definition: DDString.h:29