#ifndef DGINFO_H #define DGINFO_H #include class DGInfo { public: DGInfo(double powerFactor=1); ~DGInfo(); QString getAttchedSubstaitonID(); double getCapacity(); QString getName(); void setAttchedSubstaitonID(const QString& id); void setCapacity(double cap); void setName(const QString &name); private: double capacity;//单位kvA QString attchedSubstaitonID; double powerFactor; QString name; }; #endif // DGINFO_H