A helper class to execute shell commands securely.
More...
#include "utils/command/executor/Executor.h"
A helper class to execute shell commands securely.
This class is the "low level class" that implements IExecutor.h
- Note
- Copy contructor, copy-assignment operator, move constructor and move-assignment operator are defined to be compliant with the "Rule of five"
- See also
- https://en.cppreference.com/w/cpp/language/rule_of_three
- Author
- Boubacar DIENE bouba.nosp@m.car..nosp@m.diene.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Date
- April 2020
◆ Executor() [1/3]
| utils::command::Executor::Executor |
( |
const osal::IOsal & |
osal, |
|
|
Flags |
flags = Flags::WAIT_COMMAND |
|
) |
| |
|
explicit |
Class constructor
- Parameters
-
| osal | OS abstract layer's implementation to use. This is passed to the constructor to ease unit testing of Executor class. |
| flags | A set of masks of type IExecutor::Flags |
◆ ~Executor()
| utils::command::Executor::~Executor |
( |
| ) |
|
|
override |
Class destructor
- Note
- The override specifier aims at making the compiler warn if the base class's destructor is not virtual.
◆ Executor() [2/3]
| utils::command::Executor::Executor |
( |
const Executor & |
| ) |
|
|
delete |
◆ Executor() [3/3]
| utils::command::Executor::Executor |
( |
Executor && |
| ) |
|
|
delete |
◆ executeProgram()
| void utils::command::Executor::executeProgram |
( |
const ProgramParams & |
params | ) |
const |
|
overridevirtual |
◆ operator=() [1/2]
Class copy-assignment operator
◆ operator=() [2/2]
Class move-assignment operator
◆ m_internal
| std::unique_ptr<Internal> utils::command::Executor::m_internal |
|
private |
The documentation for this class was generated from the following file: