1.修复小bug
2.增加Node到Terminal的映射。 Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
@@ -33,18 +33,28 @@ bool BasicElementInfo::parseBasicInfo(QXmlStreamReader &reader)
|
||||
QStringRef id;
|
||||
elementName=reader.name();
|
||||
this->name=elementName.toString();
|
||||
this->id=id.toString();
|
||||
qDebug()<<reader.name()<<"\n";
|
||||
if(reader.attributes().hasAttribute("rdf:ID"))
|
||||
{
|
||||
qDebug()<<reader.attributes().value("rdf:ID")<<"\n";
|
||||
id=reader.attributes().value("rdf:ID");
|
||||
this->id=id.toString();
|
||||
}
|
||||
|
||||
// if(elementName.toString()=="Terminal")
|
||||
// {
|
||||
// if(reader.attributes().hasAttribute("rdf:ID"))
|
||||
// {
|
||||
// std::cout<<this->id.toStdString()<<std::endl;
|
||||
// std::cout<<"get id"<<std::endl;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// std::cout<<"no ID"<<std::endl;
|
||||
// }
|
||||
// }
|
||||
while(!reader.atEnd() && !reader.hasError())
|
||||
{
|
||||
reader.readNext();
|
||||
elementName=reader.name();
|
||||
this->derivedParse(reader);
|
||||
if(reader.isEndElement() && reader.name()==elementName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user