blob: 28949793701b19a4fb40c62cdff993df12bac64b (
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
|
// file : brep/options.cli -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
include <string>;
include <cstdint>;
namespace brep
{
// Web module configuration options.
//
namespace options
{
class module
{
std::uint16_t verb = 0;
};
class db
{
std::string db-host = "localhost";
std::uint16_t db-port = 5432;
};
class search: module, db
{
size_t results-on-page = 10;
};
class view: module, db
{
};
}
// Web module request parameters.
//
namespace params
{
class search
{
size_t page = 0;
};
}
}
|