00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */ 00002 #ifndef MESHPARAMST_HH 00003 #define MESHPARAMST_HH 00004 00005 #include <iostream> 00006 00007 ////////////////////////////////////////////////////////////////////////// 00008 // parameters for mesh 00009 class MeshParams_t { 00010 friend std::istream& operator >>(std::istream& in, MeshParams_t& x); 00011 friend std::ostream& operator <<(std::ostream& out, const MeshParams_t& x); 00012 public: 00013 float voltage; 00014 float current; 00015 inline MeshParams_t() { }; 00016 MeshParams_t& operator=(const MeshParams_t& aMesh); 00017 inline MeshParams_t(const MeshParams_t& x) 00018 : voltage(x.voltage), current(x.current) { }; 00019 00020 MeshParams_t(std::istream& in); 00021 std::istream& operator >>(std::istream& in); 00022 00023 }; 00024 00025 #endif