aboutsummaryrefslogtreecommitdiff
path: root/src/ioPandaGH.h
blob: d066d37cc352528b263b90df4eb04155376a21ef (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
45
46
47
48
 /*@@
   @header    ioPandaGH.h
   @date      01 Oct 1999
   @author    Jonghyun Lee
   @desc
              The extensions to the GH structure from IOPanda.
   @enddesc
   @version   $Header$
 @@*/

#ifndef _IOPANDA_IOPANDAGH_H_
#define _IOPANDA_IOPANDAGH_H_ 1

#include "StoreNamedData.h"


typedef struct IOPandaGH
{
  /* the number of times to output */
  int  out_every;

  /* flags indicating output for variable[i] */
  char *do_out;

  /* directory in which to output */
  char *outdir;

  /* the last iteration output for variable[i] */
  int  *out_last;
} pandaGH;


#ifdef __cplusplus
extern "C"
{
#endif

/* prototypes of functions to be registered as IOPanda's IO method */
int IOPanda_OutputGH (const cGH *GH);
int IOPanda_TriggerOutput (const cGH *GH, int);
int IOPanda_TimeFor (const cGH *GH, int);
int IOPanda_OutputVarAs (const cGH *GH, const char *var, const char *alias);

#ifdef __cplusplus
} // extern "C"
#endif

#endif  /* _IOPANDA_IOPANDAGH_H_ */