Manages FlatImage unshare options stored in reserved space.
More...
#include <unshare.hpp>
|
| | Unshares (fs::path const &path_file_binary) |
| | Constructs an Unshares manager for the given binary.
|
| |
| Value< void > | set_all (bool value) |
| | Sets all unshare options to the specified value.
|
| |
| Value< void > | set (std::set< Unshare > const &unshares) |
| | Sets the specified unshare options (replaces existing)
|
| |
| Value< void > | add (std::set< Unshare > const &unshares) |
| | Adds unshare options to existing configuration.
|
| |
| Value< void > | del (std::set< Unshare > const &unshares) |
| | Removes unshare options from existing configuration.
|
| |
| bool | contains (Unshare const &unshare) const noexcept |
| | Checks if a specific unshare option is enabled.
|
| |
| Value< void > | clear () noexcept |
| | Clears all unshare options.
|
| |
| Value< std::set< std::string > > | to_strings () const noexcept |
| | Converts enabled unshare options to string representations.
|
| |
Manages FlatImage unshare options stored in reserved space.
Definition at line 133 of file unshare.hpp.
◆ Unshares()
| ns_reserved::ns_unshare::Unshares::Unshares |
( |
fs::path const & | path_file_binary | ) |
|
|
inline |
Constructs an Unshares manager for the given binary.
- Parameters
-
| path_file_binary | Path to the FlatImage binary file |
Definition at line 161 of file unshare.hpp.
◆ add()
| Value< void > ns_reserved::ns_unshare::Unshares::add |
( |
std::set< Unshare > const & | unshares | ) |
|
|
inlinenodiscard |
Adds unshare options to existing configuration.
- Parameters
-
| unshares | Set of unshare options to add |
- Returns
- Value<void> Success or error
Definition at line 194 of file unshare.hpp.
◆ clear()
| Value< void > ns_reserved::ns_unshare::Unshares::clear |
( |
| ) |
|
|
inlinenodiscardnoexcept |
◆ contains()
| bool ns_reserved::ns_unshare::Unshares::contains |
( |
Unshare const & | unshare | ) |
const |
|
inlinenodiscardnoexcept |
Checks if a specific unshare option is enabled.
- Parameters
-
| unshare | Unshare option to check |
- Returns
- True if the unshare option is enabled, false otherwise
Definition at line 214 of file unshare.hpp.
◆ del()
| Value< void > ns_reserved::ns_unshare::Unshares::del |
( |
std::set< Unshare > const & | unshares | ) |
|
|
inlinenodiscard |
Removes unshare options from existing configuration.
- Parameters
-
| unshares | Set of unshare options to remove |
- Returns
- Value<void> Success or error
Definition at line 204 of file unshare.hpp.
◆ set()
| Value< void > ns_reserved::ns_unshare::Unshares::set |
( |
std::set< Unshare > const & | unshares | ) |
|
|
inlinenodiscard |
Sets the specified unshare options (replaces existing)
- Parameters
-
| unshares | Set of unshare options to enable |
- Returns
- Value<void> Success or error
Definition at line 184 of file unshare.hpp.
◆ set_all()
| Value< void > ns_reserved::ns_unshare::Unshares::set_all |
( |
bool | value | ) |
|
|
inlinenodiscard |
Sets all unshare options to the specified value.
- Parameters
-
| value | True to enable all unshare options, false to disable |
- Returns
- Value<void> Success or error
Definition at line 170 of file unshare.hpp.
◆ to_strings()
| Value< std::set< std::string > > ns_reserved::ns_unshare::Unshares::to_strings |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Converts enabled unshare options to string representations.
- Returns
- Value containing a set of unshare option names
Definition at line 236 of file unshare.hpp.
The documentation for this class was generated from the following file: