StormByte C++ Library: Config module 1.0.1.9999
StormByte-Config is the configuration module of the StormByte C++ suite.
Loading...
Searching...
No Matches
alias.hxx
1/*
2 * Copyright (C) 2024-2026 David C. Manuelda (StormBytePP)
3 *
4 * This file is part of StormByte-Config.
5 *
6 * StormByte-Config is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version 3
8 * or later, as published by the Free Software Foundation.
9 *
10 * StormByte-Config is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with StormByte-Config. If not, see
17 * <https://www.gnu.org/licenses/lgpl-3.0.html>.
18 */
19
20#pragma once
21
22#include <functional>
23#include <optional>
24#include <vector>
25
30 namespace Item {
31 class Group;
32 }
33
34 using HookFunction = std::function<void(Item::Group&)>;
35 using HookFunctions = std::vector<HookFunction>;
36 using OnFailureHook = std::function<bool(const Item::Group&)>;
37 using OptionalFailureHook = std::optional<OnFailureHook>;
38}
Named container { … } that can hold items, subgroups and lists.
Definition group.hxx:38
Config module of the StormByte suite.
Definition alias.hxx:29
std::function< void(Item::Group &)> HookFunction
Function executed as a hook.
Definition alias.hxx:34
std::vector< HookFunction > HookFunctions
List of hook functions.
Definition alias.hxx:35
std::function< bool(const Item::Group &)> OnFailureHook
Function executed on failure.
Definition alias.hxx:36
std::optional< OnFailureHook > OptionalFailureHook
Optional failure hook.
Definition alias.hxx:37