blob: b6e8e532d14203027a514dc7be1345d720cd14bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// file : odb/profile.hxx
// license : GNU GPL v3; see accompanying LICENSE file
#ifndef ODB_PROFILE_HXX
#define ODB_PROFILE_HXX
#include <set>
#include <vector>
#include <string>
#include <libcutl/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, database d, char const* n)
: search_paths (p), db (d), name (n)
{
}
paths const& search_paths;
database db;
char const* name;
std::set<path> loaded;
};
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
|