Wraps any type of rule condition.
More...
#include <RuleCondition.hpp>
Wraps any type of rule condition.
◆ RuleCondition() [1/4]
usbguard::RuleCondition::RuleCondition |
( |
| ) |
|
Constructs empty rule condition object.
In other words, the unique pointer that points to the underlying rule condition object is empty.
◆ RuleCondition() [2/4]
usbguard::RuleCondition::RuleCondition |
( |
const std::string & |
condition_string | ) |
|
Constructs rule condition object based on given rule string.
- Parameters
-
condition_string | String should be a valid rule string. |
- Exceptions
-
runtime_error | If given string is empty or does not contain a valid rule. |
- See also
- getImplementation()
◆ RuleCondition() [3/4]
usbguard::RuleCondition::RuleCondition |
( |
const RuleCondition & |
rhs | ) |
|
Constructs rule condition by copying rhs.
- Parameters
-
rhs | Rule condition to copy. |
◆ RuleCondition() [4/4]
Constructs rule condition from rhs using move semantics.
- Parameters
-
rhs | Rule condition to move. |
◆ operator*()
Returns reference to the underlying rule condition object.
- Returns
- Reference to the underlying rule condition object.
◆ operator->()
Returns pointer to the underlying rule condition object.
- Returns
- Pointer to the underlying rule condition object.
◆ operator=() [1/2]
Copy assignes rhs rule condition to this.
- Parameters
-
rhs | Rule condition to copy assign to this. |
- Returns
- This object.
◆ operator=() [2/2]
Assignes rhs rule condition to this using move semantics.
- Parameters
-
rhs | Rule condition to move assign to this. |
- Returns
- This object.
◆ toRuleString()
std::string usbguard::RuleCondition::toRuleString |
( |
| ) |
const |
Returns string representation of underlying rule condition.
- Returns
- String representation of underlying rule condition.
The documentation for this class was generated from the following files: