λ61
Loading...
Searching...
No Matches
AbstractExtensionEntryPoint.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Tetex7
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18//
19// Created by tete on 8/11/25.
20//
21#pragma once
22
23#ifndef L61_ABSTRACTEXTENSIONENTRYPOINT_HPP
24#define L61_ABSTRACTEXTENSIONENTRYPOINT_HPP
25#include <type_traits>
26
28{
30 {
31 virtual ~AbstractExtensionEntryPoint() = default;
32 virtual void preLoad() = 0;
33 virtual int initializer() = 0;
34 virtual void unLoad() = 0;
35 };
36}
37
38namespace l61::meta
39{
40 template<typename T>
41 concept extensionEntryPointCompatible = std::derived_from<T, ExtensionSystem::AbstractExtensionEntryPoint>;
42}
43
44#endif // L61_ABSTRACTEXTENSIONENTRYPOINT_HPP
#define l61_interface
denotes that I class is an interface with little to no implementation
Definition PseudoKeywords.hpp:44
Definition AbstractExtensionEntryPoint.hpp:41
Definition defs.hpp:137
l61_interface AbstractExtensionEntryPoint
Definition AbstractExtensionEntryPoint.hpp:30
virtual int initializer()=0
virtual void unLoad()=0
virtual void preLoad()=0
Definition Object.hpp:38