summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/locate.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/locate.h')
-rw-r--r--Build/source/utils/asymptote/locate.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/locate.h b/Build/source/utils/asymptote/locate.h
new file mode 100644
index 00000000000..458d0885dfe
--- /dev/null
+++ b/Build/source/utils/asymptote/locate.h
@@ -0,0 +1,32 @@
+/*****
+ * locate.h
+ * Tom Prince 2005/03/24
+ *
+ * Locate files in search path.
+ *****/
+
+#ifndef LOCATE_H
+#define LOCATE_H
+
+#include "common.h"
+#include "settings.h"
+
+namespace settings {
+
+typedef mem::list<string> file_list_t;
+extern file_list_t searchPath;
+
+// Find the appropriate file, first looking in the local directory, then the
+// directory given in settings, and finally the global system directory.
+string locateFile(string id, bool full=false, string suffix=settings::suffix);
+
+namespace fs {
+
+// Check to see if a file of given name exists.
+bool exists(string filename);
+
+}
+
+} // namespace settings
+
+#endif // LOCATE_H