ready to implement external execution aspect of task

This commit is contained in:
Chris Punches
2017-06-26 22:27:24 -04:00
parent 0bd455dd97
commit c87a56eb37
8 changed files with 63 additions and 6 deletions

View File

@@ -106,4 +106,20 @@ void Plan::load_definitions( Suite unit_definitions, bool verbose )
// then have that task attach a copy of tmp_U
this->tasks[i].load_definition( tmp_U, verbose );
}
}
}
/// Plan::execute() - Iterates through all tasks in a plan and executes them.
///
/// \param verbose
void Plan::execute( bool verbose )
{
// for each task in this plan
for ( int i = 0; i < this->tasks.size(); i++ )
{
if ( verbose ) {
std::cout << "Executing task \"" << this->tasks[i].get_name() << "\"." << std::endl;
}
this->tasks[i].execute( verbose );
}
}