StormByte-Config 2.0.0
C++26 configuration-document module of the StormByte suite
 
Loading...
Searching...
No Matches
hook.hxx File Reference
#include <StormByte/clonable.hxx>
#include <StormByte/config/visibility.h>
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.

Classes

class  StormByte::Config::ReadHook
 Stateful hook run before/after a successful text read. More...
 
class  StormByte::Config::FailureHook
 Stateful hook run when text parse fails. More...
 

Namespaces

namespace  StormByte
 
namespace  StormByte::Config
 Config module of the StormByte suite.
 
namespace  StormByte::Config::Item
 Configuration items (values, comments, groups, lists).
 

Typedefs

using StormByte::Config::ReadHookFunction = void(*)(Item::Group &)
 Function pointer for a stateless read hook.
 
using StormByte::Config::FailureHookFunction = bool(*)(const Item::Group &)
 Function pointer for a stateless failure hook.
 

Functions

StormByte::Shared< ReadHook > StormByte::Config::MakeReadHook (ReadHookFunction function)
 Wrap a function pointer in a ReadHook allocated on Base's heap.
 
StormByte::Shared< FailureHook > StormByte::Config::MakeFailureHook (FailureHookFunction function)
 Wrap a function pointer in a FailureHook allocated on Base's heap.