parent
fffadb53df
commit
ac08caee2a
|
|
@ -1,5 +1,5 @@
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS=cimparser \
|
SUBDIRS=testHasttable \
|
||||||
core \
|
#core \
|
||||||
testHasttable
|
#cimparser
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ void Task::doAgainstTaskFile(ElementHashtable &eleHT)
|
||||||
eleHT.SetFDSet(setSep.toVector());
|
eleHT.SetFDSet(setSep.toVector());
|
||||||
eleHT.GoPath();
|
eleHT.GoPath();
|
||||||
eleHT.ShowContainerInfo(lineName);
|
eleHT.ShowContainerInfo(lineName);
|
||||||
break;
|
// break;
|
||||||
}
|
}
|
||||||
file.close();
|
file.close();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ void TopologyRecorder::showContainerInfo(QTextStream &stream)
|
||||||
{
|
{
|
||||||
|
|
||||||
const QHash<QString,BasicElementInfo*> &ht=this->eleHT;
|
const QHash<QString,BasicElementInfo*> &ht=this->eleHT;
|
||||||
stream<<"total tf"<<this->tfs.length()<<"\n";
|
// stream<<"total tf"<<this->tfs.length()<<"\n";
|
||||||
//统计一下每个Container下有多少个变压器
|
//统计一下每个Container下有多少个变压器
|
||||||
QHash<QString,QVector<QString> > s;
|
QHash<QString,QVector<QString> > s;
|
||||||
for(QVector<QString>::iterator ite=this->tfs.begin();
|
for(QVector<QString>::iterator ite=this->tfs.begin();
|
||||||
|
|
@ -57,6 +57,7 @@ void TopologyRecorder::showContainerInfo(QTextStream &stream)
|
||||||
stream<<k;
|
stream<<k;
|
||||||
Substation *sb=static_cast<Substation *>(ht[k]);
|
Substation *sb=static_cast<Substation *>(ht[k]);
|
||||||
stream<<"("<<sb->getNamingDescription()<<")";
|
stream<<"("<<sb->getNamingDescription()<<")";
|
||||||
|
stream<<"#####";
|
||||||
QVector<QString> v=s[k];
|
QVector<QString> v=s[k];
|
||||||
foreach (QString n, v) {
|
foreach (QString n, v) {
|
||||||
stream<<", "<<n;
|
stream<<", "<<n;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue