26 lines
479 B
C++
26 lines
479 B
C++
#ifndef DGINFO_H
|
|
#define DGINFO_H
|
|
|
|
#include <QString>
|
|
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
|