X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FResource.hh;fp=src%2Fresource.hh;h=716e906e03f4c1f53d1ae0b3ba44ace3b3f3ba0b;hp=c5020f65c26bafed4bec8f2c070729c52f4a9f8c;hb=c2321281bf12a7efaedde930422c7ddbc92080d4;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/resource.hh b/src/Moof/Resource.hh similarity index 87% rename from src/resource.hh rename to src/Moof/Resource.hh index c5020f6..716e906 100644 --- a/src/resource.hh +++ b/src/Moof/Resource.hh @@ -26,12 +26,12 @@ *******************************************************************************/ -#ifndef _RESOURCE_HH_ -#define _RESOURCE_HH_ +#ifndef _MOOF_RESOURCE_HH_ +#define _MOOF_RESOURCE_HH_ /** - * @file resource.hh - * Parent class of textures, sounds, other assets. + * @file Resource.hh + * Interface for textures, sounds, and other types of resources. */ #include @@ -39,23 +39,23 @@ #include -namespace dc { +namespace Mf { /** * Generic resource class. */ -class resource +class Resource { public: - struct exception : public std::runtime_error + struct Exception : public std::runtime_error { - explicit exception(const std::string& what_arg) : + explicit Exception(const std::string& what_arg) : std::runtime_error(what_arg) {} }; - virtual ~resource(); + virtual ~Resource(); /** @@ -79,9 +79,9 @@ private: }; -} // namespace dc +} // namespace Mf -#endif // _RESOURCE_HH_ +#endif // _MOOF_RESOURCE_HH_ /** vim: set ts=4 sw=4 tw=80: *************************************************/