Commit d1a05883 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Adding a method to perform clean-up operations after ExecuteAndWriteOutputs() call

parent 7a664b25
......@@ -149,6 +149,9 @@ void Application::UpdateParameters()
this->DoUpdateParameters();
}
void Application::AfterExecuteAndWriteOutputs()
{}
int Application::Execute()
{
......@@ -264,6 +267,9 @@ int Application::ExecuteAndWriteOutput()
}
}
}
this->AfterExecuteAndWriteOutputs();
return status;
}
......
......@@ -753,6 +753,11 @@ private:
/* Implement this method to build the output */
virtual void DoExecute() = 0;
/* This method will be called after the
* ExecuteAndWriteOutput() call to allow for cleanup. Default
* implementation does nothing */
virtual void AfterExecuteAndWriteOutputs();
Application(const Application &); //purposely not implemented
void operator =(const Application&); //purposely not implemented
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment