aboutsummaryrefslogtreecommitdiff
path: root/odb/profile.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-30 09:27:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-30 09:27:11 +0200
commitfa508bc933b7d45110be3ab64d193653bd876336 (patch)
tree1032cfd2d4fba1449040a46a40332e66921a7998 /odb/profile.hxx
parent51529c4c62b00ea681f28b591fdcaa0c670da3d1 (diff)
Add support for database-specific profiles
Diffstat (limited to 'odb/profile.hxx')
-rw-r--r--odb/profile.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/odb/profile.hxx b/odb/profile.hxx
index e3c5035..a545ef1 100644
--- a/odb/profile.hxx
+++ b/odb/profile.hxx
@@ -12,16 +12,22 @@
#include <cutl/fs/path.hxx>
+#include <odb/option-types.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) {}
+ profile_data (paths const& p, database d, char const* n)
+ : search_paths (p), db (d), name (n)
+ {
+ }
paths const& search_paths;
- std::set<path> loaded;
+ database db;
char const* name;
+ std::set<path> loaded;
};
struct profile_failure {};
@@ -29,4 +35,7 @@ struct profile_failure {};
std::string
profile_search (char const* profile, void* arg);
+std::string
+profile_search_ignore (char const* profile, void* arg);
+
#endif // ODB_PROFILE_HXX