CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDName.cc File Reference
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDCurrentNamespace.h"
#include "DetectorDescription/Core/interface/DDSplit.h"
#include "DetectorDescription/Base/interface/Singleton.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <sstream>

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 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:61
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