164 Pipeline(
const QString &procAppName =
"");
172 void SetInputFile(
const char *inputParam,
const char *virtualBandsParam);
173 void SetInputFile(
const QString &inputParam,
const QString &virtualBandsParam);
188 return p_keepTemporary;
193 void AddToPipeline(
const QString &appname,
const QString &identifier);
204 return p_procAppName;
208 return (
int)p_apps.size();
219 return ((branch < p_originalInput.size()) ? p_originalInput[branch] :
"");
224 return p_originalInput.size();
236 if (p_originalBranches.size() > 0){
237 return p_originalBranches.size();
239 return p_inputBranches.size();
245 if (p_originalBranches.size() > 0){
246 return p_originalBranches;
248 return p_inputBranches;
251 QString
FinalOutput(
int branch = 0,
bool addModifiers =
true);
264 int size = (int)p_inputBranches.size();
266 p_originalBranches.push_back(branch);
269 for (
int i=0; i<size; i++) {
270 p_originalBranches.push_back(p_inputBranches[i] +
"." + branch);
288 QString p_procAppName;
289 std::vector<QString> p_originalInput;
290 std::vector<QString> p_inputBranches;
291 std::vector<QString> p_originalBranches;
292 std::vector<QString> p_finalOutput;
293 std::vector<QString> p_virtualBands;
294 bool p_keepTemporary;
296 std::vector< PipelineApplication * > p_apps;
297 std::vector< QString > p_appIdentifiers;
298 bool p_outputListNeedsModifiers;
void SetInputFile(const char *inputParam)
This method is used to set the original input file.
Definition: Pipeline.cpp:286
void SetInputListFile(const char *inputParam)
This method is used to set the original input files.
Definition: Pipeline.cpp:333
QString TemporaryFolder()
This method returns the user's temporary folder for temporary files.
Definition: Pipeline.cpp:886
void SetLastApplication(const QString &appname)
This method disables all applications after to this one.
Definition: Pipeline.cpp:782
void Run()
This method executes the pipeline.
Definition: Pipeline.cpp:193
friend std::ostream & operator<<(std::ostream &os, Pipeline &pipeline)
int OriginalInputSize()
Returns the number of input files.
Definition: Pipeline.h:223
File name manipulation and expansion.
Definition: FileName.h:116
~Pipeline()
This destroys the pipeline.
Definition: Pipeline.cpp:43
QString OriginalInput(unsigned int branch)
Returns the initial input file for the pipeline.
Definition: Pipeline.h:218
Pipeline(const QString &procAppName="")
This is the one and only Pipeline constructor.
Definition: Pipeline.cpp:30
void SetContinue(bool pbFlag)
Set the continue flag.
Definition: Pipeline.h:282
This class helps to call other Isis Applications in a Pipeline.
Definition: Pipeline.h:162
bool KeepTemporaryFiles()
Returns true if temporary files will not be deleted, false if they will.
Definition: Pipeline.h:187
int OriginalBranchesSize()
Returns the total number of input branches Original branches = Number of input files * Number of bran...
Definition: Pipeline.h:235
void SetFirstApplication(const QString &appname)
This method disables all applications up to this one.
Definition: Pipeline.cpp:752
void SetOutputFile(const char *outputParam)
This method is used to set the final output file.
Definition: Pipeline.cpp:446
std::vector< QString > OriginalBranches()
Returns the names of the original branches of the pipeline (input files * branches if any) ...
Definition: Pipeline.h:244
void SetOutputListFile(const char *outputFileNameParam)
This method is used to set an output list file.
Definition: Pipeline.cpp:492
This class represents one application in the pipeline.
Definition: PipelineApplication.h:62
void AddToPipeline(const QString &appname)
Add a new program to the pipeline.
Definition: Pipeline.cpp:647
void Prepare()
This method is the core of the pipeline class.
Definition: Pipeline.cpp:63
QString Name() const
Returns the name of the pipeline.
Definition: Pipeline.h:203
int Size() const
Returns the number of applications in the pipeline.
Definition: Pipeline.h:207
QString FinalOutput(int branch=0, bool addModifiers=true)
This gets the final output for the specified branch; this is necessary for the PipelineApplications t...
Definition: Pipeline.cpp:809
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void AddOriginalBranch(QString branch)
Start off the branches directly from the pipeline.
Definition: Pipeline.h:263
void AddPause()
Add a pause to the pipeline.
Definition: Pipeline.cpp:562
PipelineApplication & Application(const QString &identifier)
This is an accessor to get a specific PipelineApplication.
Definition: Pipeline.cpp:700
void EnableAllApplications()
This method re-enables all applications.
Definition: Pipeline.cpp:900