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