test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
DDSpecifics.cc File Reference
#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include "DetectorDescription/Core/src/Specific.h"
#include "DetectorDescription/Base/interface/DDdebug.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDSpecifics &sp)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::string > &v)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDSpecifics sp 
)

Definition at line 66 of file DDSpecifics.cc.

References DDBase< N, C >::isDefined(), and DDBase< N, C >::rep().

67 {
69  if (defined.first) {
70  os << *(defined.first) << " ";
71  if (defined.second) {
72  sp.rep().stream(os);
73  }
74  else {
75  os << "* specific not defined * ";
76  }
77  }
78  else {
79  os << "* specific not declared * ";
80  }
81  return os;
82 }
Definition: DDBase.h:10
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:84
def_type isDefined() const
Definition: DDBase.h:110
std::ostream& operator<< ( std::ostream &  os,
const std::vector< std::string > &  v 
)

Definition at line 84 of file DDSpecifics.cc.

References findQualityFiles::v.

85 {
86  for( const auto& it : v ) {
87  os << it << std::endl;
88  }
89  return os;
90 }