Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Resource.hpp
1 // Copyright (C) 2017 Jérôme Leclercq
2 // This file is part of the "Nazara Engine - Core module"
3 // For conditions of distribution and use, see copyright notice in Config.hpp
4 
5 #pragma once
6 
7 #ifndef NAZARA_RESOURCE_HPP
8 #define NAZARA_RESOURCE_HPP
9 
10 #include <Nazara/Prerequesites.hpp>
11 #include <Nazara/Core/String.hpp>
12 
13 namespace Nz
14 {
15  class NAZARA_CORE_API Resource
16  {
17  public:
18  Resource() = default;
19  Resource(const Resource&) = default;
20  Resource(Resource&&) noexcept = default;
21  virtual ~Resource();
22 
23  const String& GetFilePath() const;
24 
25  void SetFilePath(const String& filePath);
26 
27  Resource& operator=(const Resource&) = default;
28  Resource& operator=(Resource&&) noexcept = default;
29 
30  private:
31  String m_filePath;
32  };
33 }
34 
35 #endif // NAZARA_RESOURCE_HPP
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Core class that represents a string.
Definition: String.hpp:22
Core class that represents a resource.
Definition: Resource.hpp:15