From fa508bc933b7d45110be3ab64d193653bd876336 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 30 Mar 2011 09:27:11 +0200 Subject: Add support for database-specific profiles --- odb/profile.hxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'odb/profile.hxx') 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 +#include + struct profile_data { typedef cutl::fs::path path; typedef std::vector 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 loaded; + database db; char const* name; + std::set 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 -- cgit v1.1