blob: 2397764109b817a4a79009199499fbc69aad1db6 (
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
41
42
43
44
45
46
47
48
49
50
|
// file : brep/repository-root -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BREP_REPOSITORY_ROOT
#define BREP_REPOSITORY_ROOT
#include <brep/types>
#include <brep/module>
#include <brep/options>
namespace brep
{
class package_search;
class package_details;
class package_version_details;
class repository_details;
class repository_root: public module
{
public:
repository_root ();
private:
virtual bool
handle (request&, response&);
virtual const cli::options&
cli_options () const {return options::repository_root::description ();}
virtual option_descriptions
options ();
virtual void
init (const name_values&);
virtual void
init (cli::scanner&);
private:
shared_ptr<package_search> package_search_;
shared_ptr<package_details> package_details_;
shared_ptr<package_version_details> package_version_details_;
shared_ptr<repository_details> repository_details_;
shared_ptr<options::repository_root> options_;
};
}
#endif // BREP_REPOSITORY_ROOT
|