00001 /* @version $Revision: 1624 $ * @modifiedby $Author: lcdet $ * @lastmodified $Date: 2012-03-30 14:49:30 +0200 (Fri, 30 Mar 2012) $ */ 00002 00003 00004 #include <iostream> 00005 #include <fstream> 00006 #include <iomanip> 00007 00008 00009 #include "slowControl/MeshParams_t.hh" 00010 00011 using namespace std; 00012 00013 ////////////////////////////////////////////////////////////////////////// 00014 // parameters for mesh 00015 00016 MeshParams_t& MeshParams_t::operator=(const MeshParams_t& aMesh) 00017 { 00018 voltage = aMesh.voltage; 00019 current = aMesh.current; 00020 00021 } 00022 //------------------------------------------- 00023 00024 00025 MeshParams_t::MeshParams_t(std::istream& in) { 00026 operator >> (in); 00027 } 00028 00029 std::ostream& operator <<(std::ostream& out, const MeshParams_t& x) { 00030 return(out << "v=" << fixed << x.voltage << ", i=" << fixed << x.current); 00031 } 00032 00033 std::istream& operator >>(std::istream& in, MeshParams_t& x) { 00034 return(x.operator >> (in)); 00035 } 00036 00037 std::istream& MeshParams_t::operator >>(std::istream& in) { 00038 in >> voltage; in >> current; 00039 00040 return(in); 00041 }