Repository navigation
Expand file tree
/
Copy pathfunctions.rs
More file actions
59 lines (56 loc) · 2.95 KB
/
Copy pathfunctions.rs
File metadata and controls
59 lines (56 loc) · 2.95 KB
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
51
52
53
54
55
56
57
58
59
//! The functions of the Rust steps of the products, by the names that the child process of a step
//! runs them by. A function that a step list uses and [`FUNCTIONS`] lacks fails its step.
use obc_data::engine::Function;
pub static AREA: Function = Function { name: "obc-osm/area", run: obc_osm::step::area };
pub static OSM: Function = Function { name: "obc-osm/osm", run: obc_osm::step::osm };
pub static CUT: Function = Function { name: "obc-osm/cut", run: obc_osm::step::cut };
pub static LANDMARK_CONTENT: Function =
Function { name: "obc-pack/landmark-content", run: obc_pack::step::landmark_content };
pub static PEAK_CONTENT: Function = Function { name: "obc-pack/peak-content", run: obc_pack::step::peak_content };
pub static LANDMARKS: Function = Function { name: "obc-pack/landmarks", run: obc_pack::step::landmarks };
pub static PEAKS: Function = Function { name: "obc-pack/peaks", run: obc_pack::step::peaks };
pub static DEVICE_CATALOG: Function = Function { name: "obc-pack/catalog", run: obc_pack::catalog::engine::build };
pub static MAP: Function = Function { name: "obc-bake/map", run: obc_bake::step::map };
pub static TERRAIN: Function = Function { name: "obc-dem/terrain", run: obc_dem::step::terrain };
pub static PLANNER_TERRAIN: Function =
Function { name: "obc-dem/planner-terrain", run: obc_dem::step::planner_terrain };
pub static ROUTING_SOURCE: Function =
Function { name: "planner-router-build/routing-source", run: planner_router_build::step::source };
pub static ROUTING_ROADS: Function =
Function { name: "planner-router-build/routing-roads", run: planner_router_build::step::roads };
pub static ROUTING_COSTS: Function =
Function { name: "planner-router-build/routing-costs", run: planner_router_build::step::costs };
pub static ROUTING: Function = Function { name: "planner-router-build/routing", run: planner_router_build::step::step };
pub static ROUTE_FACTS: Function =
Function { name: "planner-router-build/route-facts", run: planner_router_build::step::facts };
pub static SEARCH: Function = Function { name: "obc-search-bake/search", run: obc_search_bake::step::step };
pub static TRAILVIEW_FEATURES: Function =
Function { name: "obc-trailview-features/features", run: obc_trailview_features::step::step };
pub static TRAILVIEW_STAMPS: Function =
Function { name: "obc-trailview-features/stamps", run: obc_trailview_features::stamps::step };
pub static PLANNER_CATALOG: Function =
Function { name: "obc-data-steps/planner-catalog", run: crate::planner::catalog::pointer };
/// Every function of a Rust step of the products.
pub const FUNCTIONS: &[&Function] = &[
&AREA,
&OSM,
&CUT,
&LANDMARK_CONTENT,
&PEAK_CONTENT,
&LANDMARKS,
&PEAKS,
&DEVICE_CATALOG,
&MAP,
&TERRAIN,
&PLANNER_TERRAIN,
&ROUTING_SOURCE,
&ROUTING_ROADS,
&ROUTING_COSTS,
&ROUTING,
&ROUTE_FACTS,
&SEARCH,
&TRAILVIEW_FEATURES,
&TRAILVIEW_STAMPS,
&PLANNER_CATALOG,
&obc_data::engine::PASS,
];