Class OverridesList¶
Defined in File live_config_overrides_list.h
Class Documentation¶
-
class OverridesList¶
An ordered list of configuration file overrides to be applied. Each callback represents a file that should be loaded into the configuration in the given order (unchanged, fresh, modified, or dropped).
Remark
Since MirAL 5.8
Public Types
-
using Loader = std::move_only_function<void(std::filesystem::path const&, std::istream&)>¶
Callback type for file-content events (unchanged, moved/new, or modified).
-
using Dropped = std::move_only_function<void(std::filesystem::path const&)>¶
Callback type for file-removal events.
Public Functions
-
explicit OverridesList(std::unique_ptr<Context> ctx)¶
- Pre:
The context must not be null
-
OverridesList(OverridesList&&) noexcept¶
-
OverridesList &operator=(OverridesList&&) noexcept¶
-
void for_each(Loader unchanged, Loader fresh, Loader modified, Dropped dropped) const¶
Iterate all events in push order, invoking the matching callback for each.
-
~OverridesList()¶
-
using Loader = std::move_only_function<void(std::filesystem::path const&, std::istream&)>¶