// Copyright (C) 2023 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_ERRORFLAGS_HPP #define NAZARA_CORE_ERRORFLAGS_HPP #include #include #include namespace Nz { class NAZARA_CORE_API ErrorFlags { public: ErrorFlags(ErrorModeFlags flags, bool replace = false); ErrorFlags(const ErrorFlags&) = delete; ErrorFlags(ErrorFlags&&) = delete; ~ErrorFlags(); ErrorModeFlags GetPreviousFlags() const; void SetFlags(ErrorModeFlags flags, bool replace = false); ErrorFlags& operator=(const ErrorFlags&) = delete; ErrorFlags& operator=(ErrorFlags&&) = delete; private: ErrorModeFlags m_previousFlags; }; } #endif // NAZARA_CORE_ERRORFLAGS_HPP