1.给Singleton的模板加了点功能。

2.添加了处理DG的功能。

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-19 14:54:36 +08:00
parent 15718e1990
commit 07cfaef632
7 changed files with 189 additions and 8 deletions

25
testHasttable/dginfo.h Normal file
View File

@@ -0,0 +1,25 @@
#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