CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DetectorDescription/Core/src/DDSpecifics.cc File Reference

#include "DetectorDescription/Core/interface/DDSpecifics.h"
#include "Specific.h"
#include "DetectorDescription/Base/interface/DDdebug.h"
#include "DetectorDescription/Base/interface/DDException.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 89 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 109 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;
}