CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
DDName.h File Reference
#include <string>
#include <map>
#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 9 of file DDName.cc.

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

10 {
11  os << n.ns() << ':' << n.name();
12  static const char * ev = getenv("DDNAMEID");
13  if (ev) os << '[' << n.id() << ']';
14  return os;
15 }
id_type id() const
Definition: DDName.h:56
const std::string & ns() const
Returns the namespace.
Definition: DDName.cc:101
bool ev
const std::string & name() const
Returns the name.
Definition: DDName.cc:87