AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
|
SystemCommand class is a class that represents a command given by the program to the system. More...
#include <SystemCommand.hpp>
Public Member Functions | |
virtual | ~SystemCommand ()=default |
Destroy the SystemCommand object. More... | |
void | executeCommand (int *argc, char ***argv) |
This method is responsible for executing commands on the system based on the filled command string. If the string is empty, then no command is executed. More... | |
Protected Member Functions | |
virtual void | setCommand (int *argc, char ***argv)=0 |
Set the string command. The method is inherited from the subclasses and overridden in order to express a specific behavior. More... | |
void | setCommand (std::string command) |
Set the string command with a particularly given string passed as a parameter. More... | |
std::string | getCommand (void) |
Get the string command. More... | |
Private Attributes | |
std::string | command |
The final command given to the system by the program. More... | |
SystemCommand class is a class that represents a command given by the program to the system.
SystemCommand class is a class that represents a command given by the program to the system. Examples of commands are the following: start and run OpenPose, move files, and clean the build folder by deleting old files. SystemCommand implements a variant of the Command design pattern. Each concrete command is realized by a specific subclass that implements the parent abstract method.
Definition at line 28 of file SystemCommand.hpp.
|
virtualdefault |
Destroy the SystemCommand object.
void SystemCommand::executeCommand | ( | int * | argc, |
char *** | argv | ||
) |
This method is responsible for executing commands on the system based on the filled command string. If the string is empty, then no command is executed.
argc | pointer to argc from the main function or based on what the program reads from the configuration file. |
argv | pointer to argv from the main function or based on what the program reads from the configuration file. |
Definition at line 23 of file SystemCommand.cpp.
References getCommand(), and setCommand().
Referenced by FacadeSingleton::cleanBuildFolder(), and FacadeSingleton::getVideoBodyKeyPoints().
|
protected |
Get the string command.
Definition at line 19 of file SystemCommand.cpp.
References command.
Referenced by executeCommand().
|
protectedpure virtual |
Set the string command. The method is inherited from the subclasses and overridden in order to express a specific behavior.
argc | pointer to argc based on what program reads from configuration file. |
argv | pointer to argv based on what program reads from configuration file. |
Implemented in CleanCommand, OpenPoseCommand, and MoveCommand.
Referenced by executeCommand(), CleanCommand::setCommand(), OpenPoseCommand::setCommand(), and MoveCommand::setCommand().
|
protected |
Set the string command with a particularly given string passed as a parameter.
command |
Definition at line 15 of file SystemCommand.cpp.
References command.
|
private |
The final command given to the system by the program.
Definition at line 33 of file SystemCommand.hpp.
Referenced by getCommand(), and setCommand().