38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
|
|
#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;
|
|||
|
|
}
|