Aircraft Detection 1.0
Loading...
Searching...
No Matches
pipeline.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Functions

void parseArguments (int argc, char **argv, std::vector< std::string > &steps)
 Parses command-line arguments to extract the list of steps to be executed.
 
void printHelp ()
 Prints the help message for the Aircraft Detection Project.
 
void checkPreviousStep (const std::string &current_step)
 Checks if the previous step required for the current step has been executed.
 
void executeStep (const std::string &step)
 Executes the specified step if it is defined in the step functions map.
 

Function Documentation

◆ checkPreviousStep()

void checkPreviousStep ( const std::string & current_step)

Checks if the previous step required for the current step has been executed.

This function verifies if the step that the current step depends on has been executed by checking for the existence of a corresponding ".done" file. If the previous step has not been executed, it throws a runtime error.

Parameters
[in]current_stepThe name of the current step to be executed.
Exceptions
std::runtime_errorIf the previous step required for the current step has not been executed.

◆ executeStep()

void executeStep ( const std::string & step)

Executes the specified step if it is defined in the step functions map.

This function looks up the specified step in the map of step functions and executes the corresponding function if it is found. If the step is not found, it prints an error message and displays the help information.

Parameters
[in]stepThe name of the step to be executed.
See also
printHelp

◆ parseArguments()

void parseArguments ( int argc,
char ** argv,
std::vector< std::string > & steps )

Parses command-line arguments to extract the list of steps to be executed.

This function reads command-line arguments and stores them in a vector of steps.

Parameters
[in]argcThe number of command-line arguments.
[in]argvThe array of command-line argument strings.
[out]stepsA vector of strings where the parsed steps will be stored.

◆ printHelp()

void printHelp ( )

Prints the help message for the Aircraft Detection Project.

This function displays a detailed help message that includes usage instructions, descriptions of the various steps in the project, and available options.