AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
SystemCommand.cpp
Go to the documentation of this file.
1//
2// SystemCommand.cpp
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#include "SystemCommand.hpp"
12
13
14
15void SystemCommand::setCommand (std::string command) {
16 this->command = command;
17}
18
19std::string SystemCommand::getCommand (void) {
20 return this->command;
21}
22
23void SystemCommand::executeCommand (int * argc, char *** argv) {
24 setCommand(argc, argv);
25 if (getCommand().size() > 0 && getCommand() != "OP") std::system(getCommand().c_str());
26}
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....
std::string command
The final command given to the system by the program.