![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <resource.hpp>
Public Member Functions | |
| Resource (std::wstring guid) noexcept | |
| Resource (const Resource &resource)=delete | |
| Resource (Resource &&resource) noexcept | |
| virtual | ~Resource () |
| Resource & | operator= (const Resource &resource)=delete |
| Resource & | operator= (Resource &&resource) noexcept |
| const std::wstring_view | GetGuid () const noexcept |
| bool | IsFileResource () const |
| const std::filesystem::path | GetPath () const |
Private Attributes | |
| std::wstring | m_guid |
A class of resources.
| ResourceT | The reource type. |
|
explicitnoexcept |
Constructs a resource.
| [in] | guid | The globally unique identifier. |
|
delete |
Constructs a resource from the given resource.
| [in] | resource | A reference to the resource to copy. |
|
noexcept |
Constructs a resource by moving the given resource.
| [in] | resource | A reference to the resource to move. |
|
virtual |
Destructs this resource.
|
noexcept |
Returns the globally unique identifier of this resource.
| const std::filesystem::path mage::Resource< ResourceT >::GetPath | ( | ) | const |
Returns the path of this resource.
| bool mage::Resource< ResourceT >::IsFileResource | ( | ) | const |
Checks whether this resource represents a file resource.
true if this resource represents a file resource. false otherwise.
|
delete |
Copies the given resource to this resource.
| [in] | resource | A reference to the resource to copy. |
|
noexcept |
Moves the given resource to this resource.
| [in] | resource | A reference to the resource to move. |
|
private |
The globally unique identifier of this resource.