]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Resource.hh
the massive refactoring effort
[chaz/yoink] / src / Moof / Resource.hh
diff --git a/src/Moof/Resource.hh b/src/Moof/Resource.hh
deleted file mode 100644 (file)
index db6fe13..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-
-/*]  Copyright (c) 2009-2010, Charles McGarvey  [**************************
-**]  All rights reserved.
-*
-* vi:ts=4 sw=4 tw=75
-*
-* Distributable under the terms and conditions of the 2-clause BSD license;
-* see the file COPYING for a complete text of the license.
-*
-**************************************************************************/
-
-#ifndef _MOOF_RESOURCE_HH_
-#define _MOOF_RESOURCE_HH_
-
-/**
- * @file Resource.hh
- * Interface for textures, sounds, and other types of resources.
- */
-
-#include <cstdio>
-#include <string>
-#include <vector>
-
-
-namespace Mf {
-
-
-/**
- * Generic resource class.  
- */
-
-class Resource
-{
-public:
-
-       virtual ~Resource() {}
-
-
-       /**
-        * Add a directory to search when looking for resource files.
-        * @param directory Path to a directory.
-        */
-
-       static void addSearchPaths(const std::string& paths);
-       static void addSearchPaths(const std::vector<std::string>& pathList);
-
-       /**
-        * Get the path to a resource of a given name.
-        * @param name Name of a resource.  The name will be appended to each
-        * search directory in order.
-        * @return The first path found which resolves to a file.
-        */
-
-       static std::string getPath(const std::string& path,
-                                                          const std::string& prefix = "",
-                                                          const std::string& extension = "");
-
-       static bool getPath(std::string& path,
-                                               const std::string& prefix = "",
-                                               const std::string& extension = "");
-
-       static FILE* openFile(std::string& path,
-                                                 std::string prefix = "",
-                                                 const std::string& extension = "",
-                                                 const std::string& mode = "rb");
-
-private:
-
-       static std::vector<std::string> gSearchPaths;
-};
-
-
-} // namespace Mf
-
-#endif // _MOOF_RESOURCE_HH_
-
This page took 0.018563 seconds and 4 git commands to generate.