#include <string>
#include <vector>
-#include <Moof/Exception.hh>
-
namespace Mf {
{
public:
- virtual ~Resource();
+ virtual ~Resource() {}
/**
* @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.
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<std::string> searchPaths_;
+ static std::vector<std::string> gSearchPaths;
};