|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
/* Copyright (c) 2020-2021, Arm Limited and Contributors
|
|
|
|
|
/* Copyright (c) 2020-2023, Arm Limited and Contributors
|
|
|
|
|
* |
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 |
|
|
|
|
* |
|
|
|
@ -16,7 +16,7 @@
@@ -16,7 +16,7 @@
|
|
|
|
|
*/ |
|
|
|
|
#pragma once |
|
|
|
|
|
|
|
|
|
#include <spdlog/fmt/fmt.h> |
|
|
|
|
#include <fmt/format.h> |
|
|
|
|
|
|
|
|
|
#include "common/tags.h" |
|
|
|
|
#include "platform/parser.h" |
|
|
|
@ -27,7 +27,7 @@ namespace vkb
@@ -27,7 +27,7 @@ namespace vkb
|
|
|
|
|
{ |
|
|
|
|
/**
|
|
|
|
|
* @brief PluginBase is the base class that plugins inherit from. The class enforces the use of tags when creating new plugins. |
|
|
|
|
* For method information see Plugin |
|
|
|
|
* For method information see Plugin |
|
|
|
|
*/ |
|
|
|
|
template <typename... TAGS> |
|
|
|
|
class PluginBase : public Plugin, public Tag<TAGS...> |
|
|
|
@ -38,7 +38,7 @@ class PluginBase : public Plugin, public Tag<TAGS...>
@@ -38,7 +38,7 @@ class PluginBase : public Plugin, public Tag<TAGS...>
|
|
|
|
|
virtual ~PluginBase() = default; |
|
|
|
|
|
|
|
|
|
virtual const std::vector<Command *> &get_cli_commands() const override; |
|
|
|
|
virtual const std::vector<Hook> & get_hooks() const override; |
|
|
|
|
virtual const std::vector<Hook> &get_hooks() const override; |
|
|
|
|
virtual bool has_tag(TagID id) const override; |
|
|
|
|
|
|
|
|
|
// hooks that can be implemented by plugins
|
|
|
|
|