~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

Viewing changes to src/core/globals.h

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
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.
 
4
 *
 
5
 * Copyright (c) 2008 - 2009.  UT-BATTELLE, LLC. All rights reserved.
 
6
 */
 
7
 
 
8
/*
 
9
 *   Functions, constants globally for both the Write and Read API
 
10
 */
 
11
#ifndef __GLOBALS_H__
 
12
#define __GLOBALS_H__
 
13
 
 
14
#include "../config.h"
 
15
 
 
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.
 
19
 *
 
20
 *  This function is called from the applicatin through adios_set_application_id()
 
21
 */
 
22
void globals_adios_set_application_id (int id);
 
23
 
 
24
 
 
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.
 
28
  */
 
29
int globals_adios_get_application_id (int *was_set);
 
30
 
 
31
 
 
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 */
 
43
 
 
44
#ifdef HAVE_DIMES
 
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();
 
53
#endif
 
54
 
 
55
#if NO_DATATAP == 0
 
56
 
 
57
char *getFixedName(char *name);
 
58
char *get_full_path_name(char *name, char *path);
 
59
 
 
60
#endif
 
61
 
 
62
#endif  /*__GLOBALS_H__*/