CMS 3D CMS Logo

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

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

◆ operator<<()

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

output operator for printing ...

Definition at line 11 of file DDString.cc.

11  {
12  os << "DDString name=" << cons.name();
13 
14  if (cons.isDefined().second) {
15  os << " val=" << cons.value();
16  } else {
17  os << " constant is not yet defined, only declared.";
18  }
19  return os;
20 }

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

DDBase::isDefined
def_type isDefined() const
Definition: DDBase.h:90
DDBase::name
const N & name() const
Definition: DDBase.h:59
DDString::value
const std::string & value() const
return the first stored value; does not check boundaries!
Definition: DDString.h:28