Aircraft Detection 1.0
|
#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 ¤t_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. | |
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.
[in] | current_step | The name of the current step to be executed. |
std::runtime_error | If the previous step required for the current step has not been executed. |
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.
[in] | step | The name of the step to be executed. |
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.
[in] | argc | The number of command-line arguments. |
[in] | argv | The array of command-line argument strings. |
[out] | steps | A vector of strings where the parsed steps will be stored. |
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.