1.修复小bug

2.增加Node到Terminal的映射。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com
2014-11-26 17:09:37 +08:00
parent a27b938085
commit 53416f8f33
12 changed files with 100 additions and 41 deletions

View File

@@ -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)
{