#include <action.hpp>
|
| static constexpr bool | is_thread_safe () |
| | Delegates call to RCImpl and returns the result.
|
| |
Definition at line 47 of file action.hpp.
◆ Ptr
◆ ActionList()
| openvpn::ActionList::ActionList |
( |
| ) |
|
|
inline |
◆ add() [1/3]
| void openvpn::ActionList::add |
( |
Action * |
action | ) |
|
|
inline |
◆ add() [2/3]
| void openvpn::ActionList::add |
( |
const Action::Ptr & |
action | ) |
|
|
inline |
◆ add() [3/3]
| void openvpn::ActionList::add |
( |
const ActionList & |
other | ) |
|
|
inline |
◆ destroy()
| void openvpn::ActionList::destroy |
( |
std::ostream & |
os | ) |
|
|
inlineoverridevirtual |
◆ enable_destroy()
| void openvpn::ActionList::enable_destroy |
( |
const bool |
state | ) |
|
|
inline |
◆ execute()
| virtual std::unordered_set< std::string > openvpn::ActionList::execute |
( |
std::ostream & |
os | ) |
|
|
inlinevirtual |
Executes a sequence of actions and returns marks of failed actions.
This method iterates over a collection of actions, executing each one. If an action throws an exception, it is caught, logged to the provided output stream, and marked as failed.
- Parameters
-
| os | Reference to an output stream for logging execution results. |
- Returns
- A set of marks for failed actions.
Definition at line 98 of file action.hpp.
◆ execute_log()
| void openvpn::ActionList::execute_log |
( |
| ) |
|
|
inline |
◆ exists()
| bool openvpn::ActionList::exists |
( |
const Action::Ptr & |
action | ) |
const |
|
inline |
◆ halt()
| void openvpn::ActionList::halt |
( |
| ) |
|
|
inline |
◆ is_halt()
| bool openvpn::ActionList::is_halt |
( |
| ) |
const |
|
inline |
◆ remove_marked()
| void openvpn::ActionList::remove_marked |
( |
const std::unordered_set< std::string > & |
marks, |
|
|
std::ostream & |
os |
|
) |
| |
|
inline |
Removes actions with specified marks and logs the removals.
Iterates through the collection and removes all actions whose marks exist in the provided set of marks. Logs each removal to the provided output stream.
- Parameters
-
| marks | A set of marks identifying actions to be removed. |
| os | Reference to an output stream for logging removed actions. |
Definition at line 175 of file action.hpp.
◆ to_string()
| std::string openvpn::ActionList::to_string |
( |
| ) |
const |
|
inline |
◆ enable_destroy_
| bool openvpn::ActionList::enable_destroy_ = false |
|
protected |
◆ halt_
| volatile bool openvpn::ActionList::halt_ = false |
|
protected |
◆ reverse_
| bool openvpn::ActionList::reverse_ = false |
|
protected |
The documentation for this class was generated from the following file: