Files
NazaraEngine/include/Nazara/Core/Initializer.hpp
SirLynix 5130a2ff84 Remove Config.hpp options and refactor headers
- Rename Config.hpp to Export.hpp
- Remove Debug.hpp and DebugOff.hpp (not used anymore)
2024-02-19 15:11:34 +01:00

40 lines
915 B
C++

// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Export.hpp
#pragma once
#ifndef NAZARA_CORE_INITIALIZER_HPP
#define NAZARA_CORE_INITIALIZER_HPP
#include <NazaraUtils/Prerequisites.hpp>
namespace Nz
{
template<typename... Args>
class Initializer
{
public:
Initializer(bool initialize = true);
Initializer(const Initializer&) = delete;
Initializer(Initializer&&) = delete; ///TODO
~Initializer();
bool Initialize();
bool IsInitialized() const;
void Uninitialize();
explicit operator bool() const;
Initializer& operator=(const Initializer&) = delete;
Initializer& operator=(Initializer&&) = delete; ///TODO
private:
bool m_initialized;
};
}
#include <Nazara/Core/Initializer.inl>
#endif // NAZARA_CORE_INITIALIZER_HPP