CMS 3D CMS Logo

Functions
DDName.cc File Reference
#include "DetectorDescription/Core/interface/DDName.h"
#include <ext/alloc_traits.h>
#include <cstdlib>
#include <sstream>
#include "DetectorDescription/Core/interface/Singleton.h"
#include "DetectorDescription/Core/interface/DDCurrentNamespace.h"
#include "DetectorDescription/Core/interface/DDSplit.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

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