Rename Module to ModuleBase

This commit is contained in:
Jérôme Leclercq
2020-09-11 13:39:18 +02:00
parent a7fac3beb8
commit fd1d416510
20 changed files with 40 additions and 40 deletions

View File

@@ -0,0 +1,40 @@
// Copyright (C) 2020 Jérôme Leclercq
// 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_MODULE_HPP
#define NAZARA_MODULE_HPP
#include <Nazara/Prerequisites.hpp>
#include <string>
namespace Nz
{
template<typename T>
class ModuleBase
{
friend class Core;
public:
static T* Instance();
protected:
ModuleBase(std::string moduleName, T* pointer);
~ModuleBase();
private:
struct NoLog {};
ModuleBase(std::string moduleName, T* pointer, NoLog);
void LogInit();
std::string m_moduleName;
};
}
#include <Nazara/Core/ModuleBase.inl>
#endif // NAZARA_MODULE_HPP