Represents a single firewall rule.
More...
#include "plugins/firewall/Rule.h"
Represents a single firewall rule.
This class is the "low level class" that implements IRule.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
◆ Rule() [1/3]
| service::plugins::firewall::Rule::Rule |
( |
const std::string & |
name, |
|
|
const std::vector< std::string > & |
commands, |
|
|
const utils::command::IExecutor & |
executor |
|
) |
| |
|
explicit |
Class constructor
- Parameters
-
| name | A name for the rule mainly used in logs messages to help identifying rules |
| commands | The list of shell commands that compose the rule |
| executor | Command executor to use |
◆ ~Rule()
| service::plugins::firewall::Rule::~Rule |
( |
| ) |
|
|
override |
Class destructor
- Note
- The override specifier aims at making the compiler warn if the base class's destructor is not virtual.
◆ Rule() [2/3]
| service::plugins::firewall::Rule::Rule |
( |
const Rule & |
| ) |
|
|
delete |
◆ Rule() [3/3]
| service::plugins::firewall::Rule::Rule |
( |
Rule && |
| ) |
|
|
delete |
◆ applyCommands()
| void service::plugins::firewall::Rule::applyCommands |
( |
| ) |
const |
|
overridevirtual |
◆ operator=() [1/2]
| Rule& service::plugins::firewall::Rule::operator= |
( |
const Rule & |
| ) |
|
|
delete |
Class copy-assignment operator
◆ operator=() [2/2]
| Rule& service::plugins::firewall::Rule::operator= |
( |
Rule && |
| ) |
|
|
delete |
Class move-assignment operator
◆ m_internal
| std::unique_ptr<Internal> service::plugins::firewall::Rule::m_internal |
|
private |
The documentation for this class was generated from the following file:
- /workdir/src/plugins/firewall/Rule.h