CMS 3D CMS Logo

Classes | Functions
DDName.h File Reference
#include <iosfwd>
#include <map>
#include <string>
#include <utility>
#include <vector>

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 12 of file DDName.cc.

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

Referenced by DDNameInterface::ddname().

13 {
14  os << n.ns() << ':' << n.name();
15  static const char * ev = getenv("DDNAMEID");
16  if (ev) os << '[' << n.id() << ']';
17  return os;
18 }
id_type id() const
Definition: DDName.h:57
const std::string & ns() const
Returns the namespace.
Definition: DDName.cc:104
bool ev
const std::string & name() const
Returns the name.
Definition: DDName.cc:90