CMS 3D CMS Logo

Functions
DDSpecifics.cc File Reference
#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include <ostream>
#include "DetectorDescription/Core/interface/DDExpandedView.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/src/Specific.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.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 69 of file DDSpecifics.cc.

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

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

Definition at line 87 of file DDSpecifics.cc.

References findQualityFiles::v.

88 {
89  for( const auto& it : v ) {
90  os << it << std::endl;
91  }
92  return os;
93 }