@@ -49,7 +49,7 @@ bool RegexExtract::extract(const QString& xmlPath)
|
||||
std::cout<<lineNum<<std::endl;
|
||||
}
|
||||
// std::cout<<line.toStdString()<<std::endl;
|
||||
if(!isInner && this->startsWith(line,"ThermalGeneratingUnit"))
|
||||
if(!isInner && this->startsWith(line,"SynchronousMachine"))
|
||||
{
|
||||
block="";
|
||||
isInner=true;
|
||||
@@ -58,7 +58,7 @@ bool RegexExtract::extract(const QString& xmlPath)
|
||||
{
|
||||
block=block+line+QString("\n");
|
||||
}
|
||||
if(isInner && this->endsWith(line,"ThermalGeneratingUnit"))
|
||||
if(isInner && this->endsWith(line,"SynchronousMachine"))
|
||||
{
|
||||
isInner=false;
|
||||
this->blocks.push_back(block);
|
||||
|
||||
Reference in New Issue
Block a user