18 #ifndef __H__OCULAR_RESOURCES_RESOURCE__H__
19 #define __H__OCULAR_RESOURCES_RESOURCE__H__
21 #include "ResourceType.hpp"
22 #include "FileIO/File.hpp"
23 #include "Utilities/Types.hpp"
41 class ResourceMetadata;
115 void setName(std::string
const& name);
120 std::string
const& getName()
const;
156 uint64_t m_SizeInMemory;
159 std::string m_MappingName;
void setSize(uint64_t size)
Definition: Resource.cpp:126
void setSourceFile(File const &file)
Definition: Resource.cpp:111
void setMetadata(ResourceMetadata *metadata)
Definition: Resource.cpp:166
ResourceType getResourceType() const
Definition: Resource.cpp:136
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
bool isInMemory() const
Definition: Resource.cpp:121
uint64_t getSize() const
Definition: Resource.cpp:131
void setIsInMemory(bool inMemory)
Definition: Resource.cpp:116
File getSourceFile() const
Definition: Resource.cpp:106
virtual void forceLoad()
Definition: Resource.cpp:101
ResourceMetadata * getMetadata() const
Definition: Resource.cpp:161
virtual void unload()
Definition: Resource.cpp:96
std::string const & getMappingName() const
Definition: Resource.cpp:151
Definition: Resource.hpp:46
void setMappingName(std::string const &name)
Definition: Resource.cpp:156