// Copyright (C) 2015 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_OBJECTLIBRARY_HPP #define NAZARA_OBJECTLIBRARY_HPP #include #include #include #include namespace Nz { template class ObjectLibrary { friend Type; public: ObjectLibrary() = delete; ~ObjectLibrary() = delete; static ObjectRef Get(const String& name); static bool Has(const String& name); static void Register(const String& name, ObjectRef object); static ObjectRef Query(const String& name); static void Unregister(const String& name); private: static bool Initialize(); static void Uninitialize(); using LibraryMap = std::unordered_map>; }; } #include #endif // NAZARA_OBJECTLIBRARY_HPP