1.重新组织了文件。
2.准备试试把所有元素都读入内存中。 Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
37
core/output1.cpp
Normal file
37
core/output1.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "head.h"
|
||||
#include "qt_readxml.h"
|
||||
bool Qt_readxml::XmlReaderzero_rx(QIODevice *file2)
|
||||
{
|
||||
//std::cout<<"XmlReaderzero_rx"<<std::endl;
|
||||
QTextStream out(file2);
|
||||
out<<"no length:"<<"\r\n";
|
||||
out<<"i,link_from,link_to,ID,description"<<"\r\n";
|
||||
int ac_no=acline_segment.size();
|
||||
for (int i=0;i<ac_no;i++)
|
||||
{
|
||||
int k=1;
|
||||
if (acline_segment[i].island==maxIsland)
|
||||
{
|
||||
if (!acline_segment[i].LongLength)
|
||||
{
|
||||
out<<k<<","<<acline_segment[i].link_from<<","<<acline_segment[i].link_to<<","<<acline_segment[i].ID<<","<<acline_segment[i].description<<"\r\n";
|
||||
k++;
|
||||
}
|
||||
}
|
||||
}
|
||||
out<<"\r\n";
|
||||
|
||||
out<<"cannot find model:"<<"\r\n";
|
||||
out<<"i,link_from,link_to,ID,Model"<<"\r\n";
|
||||
for (int i=0;i<ac_no;i++)
|
||||
{
|
||||
if (acline_segment[i].island==maxIsland)
|
||||
{
|
||||
if (acline_segment[i].LongLength && !acline_segment[i].x)
|
||||
{
|
||||
out<<acline_segment[i].link_from<<","<<acline_segment[i].link_to<<","<<acline_segment[i].ID<<","<<acline_segment[i].Model<<"\r\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user