summaryrefslogtreecommitdiff
path: root/odb/profile.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/profile.hxx')
-rw-r--r--odb/profile.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/odb/profile.hxx b/odb/profile.hxx
new file mode 100644
index 0000000..e3c5035
--- /dev/null
+++ b/odb/profile.hxx
@@ -0,0 +1,32 @@
+// file : odb/profile.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v3; see accompanying LICENSE file
+
+#ifndef ODB_PROFILE_HXX
+#define ODB_PROFILE_HXX
+
+#include <set>
+#include <vector>
+#include <string>
+
+#include <cutl/fs/path.hxx>
+
+struct profile_data
+{
+ typedef cutl::fs::path path;
+ typedef std::vector<path> paths;
+
+ profile_data (paths const& p, char const* n): search_paths (p), name (n) {}
+
+ paths const& search_paths;
+ std::set<path> loaded;
+ char const* name;
+};
+
+struct profile_failure {};
+
+std::string
+profile_search (char const* profile, void* arg);
+
+#endif // ODB_PROFILE_HXX