void AliasUnit::compileAll() { typedef list<TAlias *>::const_iterator I; for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++) { TAlias * pChild = *it; if( pChild->isActive() ) { pChild->compileAll(); } } }
void AliasUnit::_assembleReport( TAlias * pChild ) { typedef list<TAlias *>::const_iterator I; list<TAlias*> * childrenList = pChild->mpMyChildrenList; for( I it2 = childrenList->begin(); it2 != childrenList->end(); it2++) { TAlias * pT = *it2; _assembleReport( pT ); if( pT->isActive() ) statsActiveAliass++; if( pT->isTempAlias() ) statsTempAliass++; statsAliasTotal++; } }
QString AliasUnit::assembleReport() { statsActiveAliass = 0; statsAliasTotal = 0; statsTempAliass = 0; typedef list<TAlias *>::const_iterator I; for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++) { TAlias * pChild = *it; if( pChild->isActive() ) statsActiveAliass++; if( pChild->isTempAlias() ) statsTempAliass++; statsAliasTotal++; list<TAlias*> * childrenList = pChild->mpMyChildrenList; for( I it2 = childrenList->begin(); it2 != childrenList->end(); it2++) { TAlias * pT = *it2; _assembleReport( pT ); if( pT->isActive() ) statsActiveAliass++; if( pT->isTempAlias() ) statsTempAliass++; statsAliasTotal++; } } QStringList msg; msg << "Aliass current total: " << QString::number(statsAliasTotal) << "\n" << "tempAliass current total: " << QString::number(statsTempAliass) << "\n" << "active Aliass: " << QString::number(statsActiveAliass) << "\n"; /*<< "active Aliass max this session: " << QString::number(statsActiveAliassMax) << "\n" << "active Aliass min this session: " << QString::number(statsActiveAliassMin) << "\n" << "active Aliass average this session: " << QString::number(statsActiveAliassAverage) << "\n"*/ //<< "tempAliass created this session: " << QString::number(statsTempAliassCreated) << "\n" //<< "tempAliass killed this session: " << QString::number(statsTempAliassKilled) << "\n" //<< "current total regex Aliass: " << QString::number(statsRegexAliass) << "\n" //<< "average line processing time: " << QString::number(statsAverageLineProcessingTime) << "\n" //<< "max line processing time: " << QString::number(statsMaxLineProcessingTime) << "\n" //<< "min line processing time: " << QString::number(statsMinLineProcessingTime) << "\n"; return msg.join(""); }
void AliasUnit::compileAll() { typedef list<TAlias *>::const_iterator I; for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++) { TAlias * pChild = *it; if( pChild->isActive() ) { pChild->compileAll(); } } // for( int i=0; i<uninstallList.size(); i++ ) // { // unregisterAlias(uninstallList[i]); // } }