]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Resource.hh
extreme refactoring
[chaz/yoink] / src / Moof / Resource.hh
similarity index 87%
rename from src/resource.hh
rename to src/Moof/Resource.hh
index c5020f65c26bafed4bec8f2c070729c52f4a9f8c..716e906e03f4c1f53d1ae0b3ba44ace3b3f3ba0b 100644 (file)
 
 *******************************************************************************/
 
-#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 <stdexcept>
 #include <vector>
 
 
-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: *************************************************/
 
This page took 0.02073 seconds and 4 git commands to generate.