1.修复小bug
2.增加Node到Terminal的映射。 Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user