CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DetectorDescription/Core/src/DDSpecifics.cc File Reference

#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include "Specific.h"
#include "DetectorDescription/Base/interface/DDdebug.h"
#include <utility>
#include "FWCore/MessageLogger/interface/MessageLogger.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 88 of file DDSpecifics.cc.

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

{
  DDBase<DDName,DDI::Specific*>::def_type defined(sp.isDefined());
  if (defined.first) {
    os << *(defined.first) << " ";
    if (defined.second) {
      sp.rep().stream(os); 
    }
    else {
      os << "* specific not defined * ";  
    }
  }  
  else {
    os << "* specific not declared * ";  
  }  
  return os;

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

Definition at line 108 of file DDSpecifics.cc.

References v.

{
  std::vector<std::string>::const_iterator it = v.begin();
  for (; it!=v.end(); ++it) {
    os << *it << std::endl;
  }
  return os;
}