00001 #ifndef CVoltage_u_HH
00002 #define CVoltage_u_HH
00003
00004 #include <electro/CElement.hh>
00005 #include <vector>
00009 class CVoltage_u : public CElementControl
00010 {
00011 public:
00022 CVoltage_u(std::string name,float gm,std::string on,int x=0,int y=0,int rot=0) : CElementControl("VOL_U",name,gm,on,x,y,rot){
00023 for(int i=0;i<2;i++)
00024 pins.push_back(new CPin());
00025 m_valueSymbol="U";
00026 }
00031 ~CVoltage_u() {}
00032
00033 void draw();
00034
00035
00036 int getPinX(int pinNumber);
00037 int getPinY(int pinNumber);
00038 };
00039 #endif