StormByte-Config 3.0.0
C++26 configuration-document module of the StormByte suite
Loading...
Searching...
No Matches
hook.hxx File Reference
#include <StormByte/config/item/group.hxx>
#include <StormByte/safe/function.hxx>
#include <type_traits>
#include <utility>
Include dependency graph for hook.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Config
 Config module of the StormByte suite.

Typedefs

using StormByte::Config::ReadHook = StormByte::Safe::Function<void(StormByte::Safe::Shared<Item::Group>)>
 Safe read callback receiving a Base-owned mutable group handle.
using StormByte::Config::FailureHook = StormByte::Safe::Function<bool(StormByte::Safe::Shared<const Item::Group>)>
 Safe parse-failure callback receiving a Base-owned read-only group handle.

Functions

template<typename Callable>
requires StormByte::Type::CopyConstructible<std::remove_cvref_t<Callable>>
ReadHook StormByte::Config::MakeReadHook (Callable &&callable)
 Creates a read hook whose callable context is cloned and released by its creator.
template<typename Callable>
requires StormByte::Type::CopyConstructible<std::remove_cvref_t<Callable>>
FailureHook StormByte::Config::MakeFailureHook (Callable &&callable)
 Creates a failure hook whose callable context is cloned and released by its creator.