AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
SystemCommand.hpp
Go to the documentation of this file.
1//
2// SystemCommand.hpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 23/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#ifndef SystemCommand_hpp
12#define SystemCommand_hpp
13
14#include "../FacadeSingleton/FacadeSingleton.hpp"
15#include <opencv2/core.hpp>
16#include <opencv2/imgcodecs.hpp>
17#include "../Managers/UsageManager.hpp"
18
19
20
29private:
33 std::string command;
34protected:
40 virtual void setCommand (int * argc, char *** argv) = 0;
45 void setCommand (std::string command);
50 std::string getCommand (void);
51public:
55 virtual ~SystemCommand() = default;
62 void executeCommand (int * argc, char *** argv);
63};
64
65
66
74protected:
80 void setCommand (int * argc, char *** argv) override;
81};
82
83
84
89protected:
95 void setCommand (int * argc, char *** argv) override;
96};
97
98
99
104protected:
110 void setCommand (int * argc, char *** argv) override;
111};
112
113#endif /* SystemCommand_hpp */
The CleanCommand class is a class that implements a command to clean the build folder by deleting old...
void setCommand(int *argc, char ***argv) override
Set the string command to a cleaning command.
The MoveCommand class is a class that implements a command to move files through specific directories...
void setCommand(int *argc, char ***argv) override
Set the string command to moving files through the directories command.
Definition: MoveCommand.cpp:15
The OpenPoseCommand class is a class that implements a command to start and run OpenPose.
void setCommand(int *argc, char ***argv) override
Set the string command to an OpenPose properly formatted command.
SystemCommand class is a class that represents a command given by the program to the system.
std::string getCommand(void)
Get the string command.
virtual void setCommand(int *argc, char ***argv)=0
Set the string command. The method is inherited from the subclasses and overridden in order to expres...
void executeCommand(int *argc, char ***argv)
This method is responsible for executing commands on the system based on the filled command string....
virtual ~SystemCommand()=default
Destroy the SystemCommand object.
std::string command
The final command given to the system by the program.