115 lines
3.5 KiB
C
115 lines
3.5 KiB
C
|
|
#ifndef QT_READXML_H
|
|||
|
|
#define QT_READXML_H
|
|||
|
|
#include <QtCore>
|
|||
|
|
#include <vector>
|
|||
|
|
#include "head.h"
|
|||
|
|
class Qt_readxml : public QXmlStreamReader
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Qt_readxml();
|
|||
|
|
public:
|
|||
|
|
std::vector<QString> ResContainer;
|
|||
|
|
std::vector<QString> Notfound;
|
|||
|
|
std::vector<Substation> substation;
|
|||
|
|
std::vector<Terminal> terminal;
|
|||
|
|
std::vector<BaseVoltage> base_voltage;
|
|||
|
|
std::vector<BasePower> base_power;
|
|||
|
|
std::vector<ConnectivityNode> connectivity_node;
|
|||
|
|
std::vector<ACLineSegment> acline_segment;
|
|||
|
|
std::vector<BusbarSection> busbar_section;
|
|||
|
|
std::vector<Disconnector> disconnector;
|
|||
|
|
std::vector<PowerTransformer> power_transformer;
|
|||
|
|
std::vector<TransformerWinding> transformer_winding;
|
|||
|
|
std::vector<List> list1;
|
|||
|
|
std::vector<GroundDisconnector> ground_disconnector;
|
|||
|
|
std::vector<CompositeSwitch> composite_switch;
|
|||
|
|
std::vector<Circuit> circuit;
|
|||
|
|
std::vector<Bay> bay;
|
|||
|
|
std::vector<Connector> connector;
|
|||
|
|
std::vector<Fuse> fuse;
|
|||
|
|
std::vector<Pole> pole;
|
|||
|
|
std::vector<LoadBreakSwitch> load_break_switch;
|
|||
|
|
std::vector<Breaker> breaker;
|
|||
|
|
std::vector<AC_kind> ac_kind;
|
|||
|
|
std::vector<DisSubstation> dis_substation;
|
|||
|
|
std::vector<DisLine> dis_line;
|
|||
|
|
std::vector<DisSecNode> dis_sec_node;
|
|||
|
|
std::vector<DisTrans> dis_trans;
|
|||
|
|
std::vector<int> busContainer;
|
|||
|
|
std::vector<QString> nextBus;
|
|||
|
|
double total_length;
|
|||
|
|
QStringRef R1;
|
|||
|
|
QString str;
|
|||
|
|
int i1;
|
|||
|
|
int i2;
|
|||
|
|
int i3;
|
|||
|
|
int i4;
|
|||
|
|
int i5;
|
|||
|
|
int i6;
|
|||
|
|
int i7;
|
|||
|
|
int i8;
|
|||
|
|
int i9;
|
|||
|
|
int i10;
|
|||
|
|
int i11;
|
|||
|
|
int i12;
|
|||
|
|
int i13;
|
|||
|
|
int i14;
|
|||
|
|
int i15;
|
|||
|
|
int i16;
|
|||
|
|
int i17;
|
|||
|
|
int i18;
|
|||
|
|
int i19;
|
|||
|
|
QString cn;
|
|||
|
|
int bus_no;
|
|||
|
|
int balance_node;
|
|||
|
|
int k;
|
|||
|
|
int isAcnode; //是否为孤点的标记,1为是孤点
|
|||
|
|
int maxIsland; //最大的拓扑岛
|
|||
|
|
int totalLine;
|
|||
|
|
int totalBus;
|
|||
|
|
///////////////////////
|
|||
|
|
bool XmlReaderreadFile(QIODevice *file);
|
|||
|
|
void XmlReaderread();
|
|||
|
|
void XmlReaderTopologyAnalyse();
|
|||
|
|
void XmlReaderDealData();
|
|||
|
|
void XmlReaderInterface();
|
|||
|
|
bool XmlReaderwriteFile(QIODevice *file1);
|
|||
|
|
bool XmlReaderzero_rx(QIODevice *file2);
|
|||
|
|
bool XmlReadernone_trans_pq(QIODevice *file3);
|
|||
|
|
bool XmlReadernone_trans_rx(QIODevice *file4);
|
|||
|
|
bool XmlReaderline_info(QIODevice *file5);
|
|||
|
|
bool XmlReadertrans_info(QIODevice *file6);
|
|||
|
|
bool XmlReaderTotalLineLenghth(QIODevice *file);//杜孟远加的
|
|||
|
|
bool XmlReaderContactPoint(QIODevice *file7);
|
|||
|
|
bool XmlReaderDisnetReconfig(QIODevice *file8);
|
|||
|
|
void XmlReaderread_Substation();
|
|||
|
|
void XmlReaderread_Terminal();
|
|||
|
|
void XmlReaderread_BaseVoltage();
|
|||
|
|
void XmlReaderread_BasePower();
|
|||
|
|
void XmlReaderread_VoltageLevel();
|
|||
|
|
void XmlReaderread_ConnectivityNode();
|
|||
|
|
void XmlReaderread_ACLineSegment();
|
|||
|
|
void XmlReaderread_LoadBreakSwitch();
|
|||
|
|
void XmlReaderread_BusbarSection();
|
|||
|
|
void XmlReaderread_Disconnector();
|
|||
|
|
void XmlReaderread_PowerTransformer();
|
|||
|
|
void XmlReaderread_TransformerWinding();
|
|||
|
|
void XmlReaderread_GroundDisconnector();
|
|||
|
|
void XmlReaderread_CompositeSwitch();
|
|||
|
|
void XmlReaderread_Circuit();
|
|||
|
|
void XmlReaderread_Bay();
|
|||
|
|
void XmlReaderread_Connector();
|
|||
|
|
void XmlReaderread_Fuse();
|
|||
|
|
void XmlReaderread_Pole();
|
|||
|
|
void XmlReaderread_Breaker();
|
|||
|
|
void XmlReaderFormList(int i,QString name1,QString id);
|
|||
|
|
void XmlReaderInputResource(int i);
|
|||
|
|
int XmlReaderFindResource(int j, int n, int sign);
|
|||
|
|
void XmlReaderFindResource1(int i);
|
|||
|
|
void XmlReaderFindResource2(int i);
|
|||
|
|
void XmlReaderdeal_ac();
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // QT_READXML_H
|