#include <string>
#include <vector>
#include <iostream>
#include "CondFormats/OptAlignObjects/interface/OAQuality.h"
#include "CondFormats/OptAlignObjects/interface/OpticalAlignInfo.h"
Go to the source code of this file.
Classes | |
class | OpticalAlignMeasurementInfo |
Author: Michael Case Date: March 7, 2006. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &, const OpticalAlignMeasurementInfo &) |
std::ostream& operator<< | ( | std::ostream & | , | |
const OpticalAlignMeasurementInfo & | ||||
) |
Definition at line 6 of file OpticalAlignMeasurementInfo.cc.
References lat::endl(), OpticalAlignMeasurementInfo::ID_, OpticalAlignMeasurementInfo::measObjectNames_, OpticalAlignMeasurementInfo::name_, OpticalAlignMeasurementInfo::type_, and OpticalAlignMeasurementInfo::values_.
00007 { 00008 os << "Name: " << r.name_ << " Type: " << r.type_ << " ID: " << r.ID_ << std::endl; 00009 int iw = os.width(); // save current width 00010 int ip = os.precision(); // save current precision 00011 int now = 12; 00012 int nop = 5; 00013 00014 std::vector<std::string>::const_iterator item; 00015 00016 for(item = r.measObjectNames_.begin(); item != r.measObjectNames_.end(); item++ ){ 00017 os << std::setw( now ) << std::setprecision( nop ) << "measuring object name: " << *item << std::endl; 00018 } 00019 00020 std::vector<OpticalAlignParam>::const_iterator iteo; 00021 for( iteo = r.values_.begin(); iteo != r.values_.end(); iteo++ ){ 00022 os << std::setw( now ) << std::setprecision( nop ) << "MEAS: " << *iteo; 00023 } 00024 00025 os << std::setprecision( ip ) << std::setw( iw ); 00026 return os; 00027 }