29 lines
584 B
C++
29 lines
584 B
C++
#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();
|
|
QVector<QSharedPointer<DGInfo> > getDGBySubstationID(const QString& id);
|
|
bool load(const QString &filePath);
|
|
private:
|
|
htType ht;
|
|
};
|
|
|
|
#endif // DGMAPPING_H
|