NazaraEngine/include/Nazara/Core/PluginInterface.hpp

39 lines
1.0 KiB
C++

// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_CORE_PLUGININTERFACE_HPP
#define NAZARA_CORE_PLUGININTERFACE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Config.hpp>
#include <string>
namespace Nz
{
class NAZARA_CORE_API PluginInterface
{
public:
PluginInterface() = default;
PluginInterface(const PluginInterface&) = delete;
PluginInterface(PluginInterface&&) = delete;
virtual ~PluginInterface();
virtual bool Activate() = 0;
virtual void Deactivate() = 0;
virtual std::string_view GetDescription() const = 0;
virtual std::string_view GetName() const = 0;
virtual UInt32 GetVersion() const = 0;
PluginInterface& operator=(const PluginInterface&) = delete;
PluginInterface& operator=(PluginInterface&&) = delete;
};
}
#include <Nazara/Core/PluginInterface.inl>
#endif // NAZARA_CORE_PLUGININTERFACE_HPP