CMS 3D CMS Logo

DDStrVector.cc File Reference

#include "DetectorDescription/Core/interface/DDStrVector.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDStrVector &cons)
 output operator for printing ...


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDStrVector cons 
)

output operator for printing ...

Definition at line 20 of file DDStrVector.cc.

References DDBase< N, C >::isDefined(), it, DDBase< N, C >::name(), DDStrVector::size(), and DDStrVector::values().

00021 {
00022   os << "DDStrVector name=" << cons.name(); 
00023   
00024   if(cons.isDefined().second) {
00025     os << " size=" << cons.size() << " vals=( ";
00026     DDStrVector::value_type::const_iterator it(cons.values().begin()), ed(cons.values().end());
00027     for(; it<ed; ++it) {
00028       os << *it << ' ';
00029     }
00030     os << ')';
00031   }
00032   else {
00033     os << " constant is not yet defined, only declared.";
00034   }  
00035   return os;
00036 }


Generated on Tue Jun 9 17:52:36 2009 for CMSSW by  doxygen 1.5.4