1.给Singleton的模板加了点功能。
2.添加了处理DG的功能。 Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
27
testHasttable/dgmapping.h
Normal file
27
testHasttable/dgmapping.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef DGMAPPING_H
|
||||
#define DGMAPPING_H
|
||||
#include <QString>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QStringList>
|
||||
#include <QVector>
|
||||
#include <QSharedPointer>
|
||||
#include "singletonbase.h"
|
||||
#include "dginfo.h"
|
||||
|
||||
//把DG信息对应到Substation上。
|
||||
class DGMapping
|
||||
{
|
||||
class htType:public SingletonBase<QString,QVector<QSharedPointer<DGInfo> > ,htType>
|
||||
{
|
||||
|
||||
};
|
||||
public:
|
||||
DGMapping();
|
||||
~DGMapping();
|
||||
bool load(const QString &filePath);
|
||||
private:
|
||||
htType ht;
|
||||
};
|
||||
|
||||
#endif // DGMAPPING_H
|
||||
Reference in New Issue
Block a user