aboutsummaryrefslogtreecommitdiff
path: root/odb/profile.hxx
blob: ff693f753b1ae2383a192ba1bc244cb25d9232cc (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
40
// file      : odb/profile.hxx
// 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>

#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