1.重新组织了文件。

2.准备试试把所有元素都读入内存中。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-11-21 17:47:58 +08:00
parent 5d44332c13
commit 3a555bd2c1
35 changed files with 109 additions and 41 deletions

21
core/output3.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include "head.h"
#include "qt_readxml.h"
bool Qt_readxml::XmlReadernone_trans_rx(QIODevice *file4)
{
//std::cout<<"XmlReadernone_trans_rx"<<std::endl;
QTextStream out(file4);
out<<"no Pk and Uk:"<<"\r\n";
int trans_no=power_transformer.size();
for (int i=0;i<trans_no;i++)
{
if (power_transformer[i].island==maxIsland)
{
if (!power_transformer[i].Uk && !power_transformer[i].Pk)
{
out<<i<<","<<power_transformer[i].Model<<","<<power_transformer[i].Serial_Number<<"\r\n";
}
}
}
return 0;
}