CMS 3D CMS Logo

DDName.h File Reference

#include <utility>
#include <string>
#include <iostream>
#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().

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


Generated on Tue Jun 9 17:52:30 2009 for CMSSW by  doxygen 1.5.4