AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
Command
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
15
void
SystemCommand::setCommand
(std::string command) {
16
this->command =
command
;
17
}
18
19
std::string
SystemCommand::getCommand
(
void
) {
20
return
this->
command
;
21
}
22
23
void
SystemCommand::executeCommand
(
int
* argc,
char
*** argv) {
24
setCommand
(argc, argv);
25
if
(
getCommand
().size() > 0 &&
getCommand
() !=
"OP"
) std::system(
getCommand
().c_str());
26
}
SystemCommand.hpp
SystemCommand::getCommand
std::string getCommand(void)
Get the string command.
Definition:
SystemCommand.cpp:19
SystemCommand::setCommand
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...
SystemCommand::executeCommand
void executeCommand(int *argc, char ***argv)
This method is responsible for executing commands on the system based on the filled command string....
Definition:
SystemCommand.cpp:23
SystemCommand::command
std::string command
The final command given to the system by the program.
Definition:
SystemCommand.hpp:33
Generated by
1.9.4