cimforreduceloss/testHasttable/elementhashtable.h

36 lines
748 B
C
Raw Normal View History

#ifndef ELEMENTHASHTABLE_H
#define ELEMENTHASHTABLE_H
#include <QObject>
#include <QXmlStreamReader>
#include <QString>
#include <QDebug>
#include <QFile>
#include <QHash>
#include "BasicElementInfo.h"
#include "subcontrolarea.h"
#include "busbarsection.h"
#include "terminal.h"
#include "aclinesegment.h"
#include "breaker.h"
#include "compensator.h"
#include "disconnector.h"
#include "powertransformer.h"
#include "synchronousmachine.h"
class ElementHashtable : public QObject
{
Q_OBJECT
public:
explicit ElementHashtable(QObject *parent = 0);
bool parse(const QString& xmlPath);
private:
bool child(QXmlStreamReader &reader);
QHash<QString,BasicElementInfo> eleHT;
signals:
public slots:
};
#endif // ELEMENTHASHTABLE_H