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

@@ -7,16 +7,23 @@ BusbarSection::BusbarSection(QObject *parent):BasicElementInfo(parent)
bool BusbarSection::derivedParse(QXmlStreamReader& reader)
{
// std::cout<<reader.name().toString().toStdString()<<std::endl;
if("ConductingEquipment.Terminals"==reader.name() && reader.attributes().hasAttribute("rdf:resource"))
{
QString terminal;
terminal=reader.attributes().value("rdf:resource").toString();
this->terminal=terminal.replace("#","").leftRef(-1).toString();//返回整个字符串的Ref
qDebug()<<"got "<<"ConductingEquipment.Terminals "<<this->terminal<<"\n";
// std::cout<<"ConductingEquipment.Terminals"<<this->terminal.toStdString()<<std::endl;
}
return true;
}
QString BusbarSection::getTerminal()
{
return this->terminal;
}
bool BusbarSection::parse(QXmlStreamReader& reader)
{
// std::cout<<"BusbarSection"<<std::endl;