X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FResource.hh;h=671aeb65bc3329c69666ba31a0451d7ff1913c52;hp=2740fc31a136add04d6bcc81f7a21ae37aa878bc;hb=987971a961454d97082c6448fdc0bbeb540281bb;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/Moof/Resource.hh b/src/Moof/Resource.hh index 2740fc3..671aeb6 100644 --- a/src/Moof/Resource.hh +++ b/src/Moof/Resource.hh @@ -37,8 +37,6 @@ #include #include -#include - namespace Mf { @@ -51,7 +49,7 @@ class Resource { public: - virtual ~Resource(); + virtual ~Resource() {} /** @@ -59,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& path); /** * Get the path to a resource of a given name. @@ -70,21 +69,9 @@ public: static std::string getPath(const std::string& name); - - struct Exception : public Mf::Exception - { - explicit Exception(unsigned error) : - Mf::Exception(error) {} - - void raise() - { - throw *this; - } - }; - private: - static std::vector searchPaths_; + static std::vector gSearchPaths; };