2
* ADIOS is freely available under the terms of the BSD license described
3
* in the COPYING file in the top level directory of this source distribution.
5
* Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved.
9
* Functions, constants globally for both the Write and Read API
14
#include "../config.h"
16
/** Set an application ID for this program.
17
* This function is necessary for methods who needs a unique ID from each participating applications.
18
* Currently, this is the DATASPACES/DIMES methods for code coupling of independent applications.
20
* This function is called from the applicatin through adios_set_application_id()
22
void globals_adios_set_application_id (int id);
25
/** Get the application ID set by the application itself.
26
* Returns the ID set by the application, -1 if it was not set.
27
* It also returns a boolean was_set, 0 if it was not set, 1 otherwise.
29
int globals_adios_get_application_id (int *was_set);
32
/* Note: would be nice a <string, int> map for arbitrary globals */
33
#ifdef HAVE_DATASPACES
34
void globals_adios_set_dataspaces_connected_from_reader();
35
void globals_adios_set_dataspaces_disconnected_from_reader();
36
void globals_adios_set_dataspaces_connected_from_writer();
37
void globals_adios_set_dataspaces_disconnected_from_writer();
38
int globals_adios_is_dataspaces_connected(); // from any
39
int globals_adios_is_dataspaces_connected_from_reader();
40
int globals_adios_is_dataspaces_connected_from_writer();
41
int globals_adios_is_dataspaces_connected_from_both();
42
#endif /* HAVE_DATASPACES */
45
void globals_adios_set_dimes_connected_from_reader();
46
void globals_adios_set_dimes_disconnected_from_reader();
47
void globals_adios_set_dimes_connected_from_writer();
48
void globals_adios_set_dimes_disconnected_from_writer();
49
int globals_adios_is_dimes_connected(); // from any
50
int globals_adios_is_dimes_connected_from_reader();
51
int globals_adios_is_dimes_connected_from_writer();
52
int globals_adios_is_dimes_connected_from_both();
57
char *getFixedName(char *name);
58
char *get_full_path_name(char *name, char *path);
62
#endif /*__GLOBALS_H__*/