14#include "PipelineApplication.h"
153 Pipeline(
const QString &procAppName =
"");
161 void SetInputFile(
const char *inputParam,
const char *virtualBandsParam);
162 void SetInputFile(
const QString &inputParam,
const QString &virtualBandsParam);
182 void AddToPipeline(
const QString &appname,
const QString &identifier);
189 friend std::ostream &operator<<(std::ostream &os,
Pipeline &pipeline);
197 return (
int)
p_apps.size();
240 QString
FinalOutput(
int branch = 0,
bool addModifiers =
true);
258 for (
int i=0; i<size; i++) {
285 std::vector< PipelineApplication * >
p_apps;
287 bool p_outputListNeedsModifiers;
File name manipulation and expansion.
This class represents one application in the pipeline.
This class helps to call other Isis Applications in a Pipeline.
void Run()
This method executes the pipeline.
void SetContinue(bool pbFlag)
Set the continue flag.
void SetInputFile(const char *inputParam)
This method is used to set the original input file.
bool p_keepTemporary
True if keeping temporary files.
int OriginalInputSize()
Returns the number of input files.
std::vector< PipelineApplication * > p_apps
The pipeline applications.
void SetInputListFile(const char *inputParam)
This method is used to set the original input files.
void AddPause()
Add a pause to the pipeline.
int OriginalBranchesSize()
Returns the total number of input branches Original branches = Number of input files * Number of bran...
bool KeepTemporaryFiles()
Returns true if temporary files will not be deleted, false if they will.
std::vector< QString > p_appIdentifiers
The strings to identify the pipeline applications.
bool p_addedCubeatt
True if the "cubeatt" program was added.
PipelineApplication & Application(const QString &identifier)
This is an accessor to get a specific PipelineApplication.
std::vector< QString > p_originalBranches
The input file(s) + original branches from pipeline.
QString p_procAppName
The name of the pipeline.
QString FinalOutput(int branch=0, bool addModifiers=true)
This gets the final output for the specified branch; this is necessary for the PipelineApplications t...
QString TemporaryFolder()
This method returns the user's temporary folder for temporary files.
void AddOriginalBranch(QString branch)
Start off the branches directly from the pipeline.
void Prepare()
This method is the core of the pipeline class.
Pipeline(const QString &procAppName="")
This is the one and only Pipeline constructor.
std::vector< QString > p_inputBranches
Branches for input list.
std::vector< QString > p_finalOutput
The final output file (empty if needs calculated)
void AddToPipeline(const QString &appname)
Add a new program to the pipeline.
std::vector< QString > p_virtualBands
The virtual bands string.
int Size() const
Returns the number of applications in the pipeline.
~Pipeline()
This destroys the pipeline.
void SetLastApplication(const QString &appname)
This method disables all applications after to this one.
void SetFirstApplication(const QString &appname)
This method disables all applications up to this one.
void EnableAllApplications()
This method re-enables all applications.
void SetOutputFile(const char *outputParam)
This method is used to set the final output file.
std::vector< QString > p_originalInput
The original input file.
QString OriginalInput(unsigned int branch)
Returns the initial input file for the pipeline.
QString Name() const
Returns the name of the pipeline.
std::vector< QString > OriginalBranches()
Returns the names of the original branches of the pipeline (input files * branches if any)
void SetOutputListFile(const char *outputFileNameParam)
This method is used to set an output list file.
bool p_continue
continue the execution even if exception is encountered.
This is free and unencumbered software released into the public domain.