16 class ResourceManager;
44 void Split(
const std::string &line,
const char delimeter, std::vector<std::string> &elements);
ResourceManager * GetResourceManager()
Gets a pointer to the ResourceManager that was used to load the resource.
Definition: Resource.h:56
virtual bool Load(const std::string &path, ResourceManager *pManager)=0
Load the desired resource into memory.
void TrimLine(std::string &line)
Removes white-space at the front and end of a line of text.
Definition: Resource.cpp:43
void Split(const std::string &line, const char delimeter, std::vector< std::string > &elements)
Splits a string into a vector of strings.
Definition: Resource.cpp:16
virtual bool IsCloneable() const =0
Used to determine if the resource is cloneable.
Base class for all resource types to be managed by the ResourceManager class.
Definition: Resource.h:19
unsigned short GetResourceID() const
Gets the ID of the resource.
Definition: Resource.h:35
void ParseComments(std::string &line)
Removes c-style, single-line comments from a line of text.
Definition: Resource.cpp:31
Loads and manages the lifespan of objects from external files.
Definition: ResourceManager.h:17
virtual Resource * Clone()
Clones a resource.
Definition: Resource.h:69
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
Definition: Animation.cpp:14