cimforreduceloss/testHasttable/topologyrecorder.h

26 lines
622 B
C++

#ifndef TOPOLOGYRECORDER_H
#define TOPOLOGYRECORDER_H
#include <QVector>
#include <QHash>
#include <QString>
#include <QPair>
#include "BasicElementInfo.h"
#include "breaker.h"
#include "aclinesegment.h"
#include "nodetoterminal.h"
#include "terminal.h"
class TopologyRecorder
{
public:
TopologyRecorder(const QHash<QString,BasicElementInfo *>& elementHT);
bool startWithNode(const QString& node);
private:
NodeToTerminal nodeToTerminal;
const QHash<QString,BasicElementInfo *>& eleHT;
QVector<QPair<QString,QString> > branch;
QHash<QString,char> reachedTerminal;
};
#endif // TOPOLOGYRECORDER_H