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

@@ -4,6 +4,8 @@ Terminal::Terminal(QObject *parent):BasicElementInfo(parent)
{
}
bool Terminal::derivedParse(QXmlStreamReader& reader)
{
if("Terminal.ConnectivityNode"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
@@ -12,6 +14,8 @@ bool Terminal::derivedParse(QXmlStreamReader& reader)
cn=reader.attributes().value("rdf:resource").toString();
this->connectivityNode=cn.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
qDebug()<<"got "<<"Terminal.ConnectivityNode "<<this->connectivityNode<<"\n";
NodeToTerminal nt;
nt.add(this->connectivityNode,this->id);
}
if("Terminal.ConductingEquipment"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
@@ -24,6 +28,13 @@ bool Terminal::derivedParse(QXmlStreamReader& reader)
return true;
}
QString Terminal::getConductingEquipment()
{
return this->conductingEquipment;
}
bool Terminal::parse(QXmlStreamReader& reader)
{
return this->parseBasicInfo(reader);