00001 #ifndef MESHPARAMST_HH 00002 #define MESHPARAMST_HH 00003 00004 #include <iostream> 00005 00006 ////////////////////////////////////////////////////////////////////////// 00007 // parameters for mesh 00008 class MeshParams_t { 00009 friend std::istream& operator >>(std::istream& in, MeshParams_t& x); 00010 friend std::ostream& operator <<(std::ostream& out, const MeshParams_t& x); 00011 public: 00012 float voltage; 00013 float current; 00014 inline MeshParams_t() { }; 00015 inline MeshParams_t(const MeshParams_t& x) 00016 : voltage(x.voltage), current(x.current) { }; 00017 MeshParams_t(std::istream& in); 00018 std::istream& operator >>(std::istream& in); 00019 }; 00020 00021 #endif