]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Resource.hh
cade lab fixes
[chaz/yoink] / src / Moof / Resource.hh
index f7d17824dc2c6d162cd8ff4c3ddb2d3a1971950d..671aeb65bc3329c69666ba31a0451d7ff1913c52 100644 (file)
@@ -34,7 +34,6 @@
  * Interface for textures, sounds, and other types of resources.
  */
 
-#include <stdexcept>
 #include <string>
 #include <vector>
 
@@ -49,13 +48,8 @@ namespace Mf {
 class Resource
 {
 public:
-       struct Exception : public std::runtime_error
-       {
-               explicit Exception(const std::string& what_arg) :
-                       std::runtime_error(what_arg) {}
-       };
 
-       virtual ~Resource();
+       virtual ~Resource() {}
 
 
        /**
@@ -63,7 +57,8 @@ public:
         * @param directory Path to a directory.
         */
 
-       static void addSearchPath(const std::string& directory);
+       static void addSearchPaths(const std::string& path);
+       static void addSearchPaths(const std::vector<std::string>& path);
 
        /**
         * Get the path to a resource of a given name.
@@ -75,7 +70,8 @@ public:
        static std::string getPath(const std::string& name);
 
 private:
-       static std::vector<std::string> searchPaths_;
+
+       static std::vector<std::string> gSearchPaths;
 };
 
 
This page took 0.021808 seconds and 4 git commands to generate.