1.给Singleton的模板加了点功能。
2.添加了处理DG的功能。 Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
25
testHasttable/dginfo.h
Normal file
25
testHasttable/dginfo.h
Normal 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
|
||||
Reference in New Issue
Block a user