CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DetectorDescription/Core/interface/DDName.h File Reference

#include <utility>
#include <string>
#include <iosfwd>
#include <map>
#include <vector>
#include <stdexcept>

Go to the source code of this file.

Classes

class  DDName
 DDName is used to identify DDD entities uniquely. More...
struct  DDNameInterface
 DDNameInterface provides a common interface to DDD entities. More...

Functions

std::ostream & operator<< (std::ostream &os, const DDName &n)

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDName n 
)

Definition at line 9 of file DDName.cc.

References DDName::id(), DDName::name(), and DDName::ns().

{ 
  os << n.ns() << ':' << n.name();
  static const char * ev = getenv("DDNAMEID");
  if (ev) os << '[' << n.id() << ']';
  return os;
}