-
Notifications
You must be signed in to change notification settings - Fork 0
/
RiverineFloodModuleExport.h
45 lines (36 loc) · 1.97 KB
/
RiverineFloodModuleExport.h
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
#ifdef _WIN32
#ifdef __cplusplus
#define DLLEXPORT extern "C" __declspec(dllexport)
#define WINAPI
//#define WINAPI __stdcall
#else
#define DLLEXPORT __declspec(dllexport)
#define WINAPI __stdcall
#endif
#else
#ifdef __cplusplus
#define DLLEXPORT extern "C"
#define WINAPI
#else
#define DLLEXPORT
#define WINAPI
#endif
#endif
// Used to initialise the library. Parses the database directory to make an internal representation of its structure.
DLLEXPORT int WINAPI initialise(char* _database_directory, int * num_scenarios, int * num_portfolios);
////Used to retrieve the catchments in the database - to obntain their names and indexes used to identify them
//RIVERINEFLOODMODULE_API size_t catchments(int num_catchments, char** catchment_names, int** catchment_indices);
////USed to retrieve the scenarios in the database - to obtain their names and indices used to identify them
//RIVERINEFLOODMODULE_API size_t scenarios(int num_scenarios, char** scenario_names, int** scenario_indices);
//// Used to retrive the mitigation options in the database for a catchment.
//RIVERINEFLOODMODULE_API size_t mitigation_options(int catchment_indice, int num_options, char** options_names, int** options_indices);
// USed to pull the correct maps out of the database that will be needed during the model run. THese are stitched together
// at this stage. Takes c string representations of climate scenario and mitigation options.
DLLEXPORT int WINAPI startOfRunC(char* climate_scenario, char* mitigation_option[]);
// USed to pull the correct maps out of the database that will be needed during the model run. THese are stitched together
// at this stage. Takes int representations of climate scenario and mitigation options.
DLLEXPORT int WINAPI startOfRunI(int climate_scenario, int mitigation_option[]);
// USed to get an inundation map at a certain year for a 1:ari event.
DLLEXPORT int WINAPI get_mapC(int ari, int year, char* map_file_path);
//Frees memory, closes down the library.
DLLEXPORT int WINAPI close();