diff options
author | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2000-09-21 13:21:16 +0000 |
---|---|---|
committer | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2000-09-21 13:21:16 +0000 |
commit | 8fa9ff2f285acf0a8f09bb49ea26b5bc6a853a0e (patch) | |
tree | 4bcb01a6783b9f1d15cf0ff06861c9969a0c3807 | |
parent | e87f6d8163aea9cc9b071a96759250804238b0f3 (diff) |
Removed typedefs and prototypes which are now in separate headers ioutil_*.h.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@97 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r-- | src/ioGH.h | 110 |
1 files changed, 5 insertions, 105 deletions
@@ -15,10 +15,8 @@ @version $Header$ @@*/ -#include "StoreNamedData.h" - -#ifndef __IOGH_H__ -#define __IOGH_H__ 1 +#ifndef _IOGH_H_ +#define _IOGH_H_ 1 #ifdef __cplusplus @@ -27,36 +25,9 @@ extern "C" #endif -/* structure describing an advertised file - It contains pointer to strings holding - - the thorn which created the file - - the variable name the file contents data belongs to - - the MIME type for the file format used - - a short slice string indication the dimensionality of the data - - an arbitrary additional description of the file contents */ -typedef struct -{ - char *thorn; - char *varname; - char *mimetype; - char *slice; - char *description; -} IOUtil_AdvertisedFileDesc_t; - - -/* structure containing function pointers for handling with advertised files - For the moment it contains only a registration routine for new files to - be advertised. In the future we might also want something like - unadvertising, or notification when the contents of the file changed. */ -typedef struct -{ - int (*advertise) (cGH *GH, const char *filename, - const IOUtil_AdvertisedFileDesc_t *description); -} IOUtil_AdvertisedFileListenerCallbacks_t; - - /* IOUtil's GH extension structure */ -typedef struct IOGH { +typedef struct IOGH +{ #if 0 /* TR: commented these things out because they were moved into the other @@ -94,83 +65,12 @@ typedef struct IOGH { /* for data file reader */ char *do_inVars; /* flags indicating to read in variable [i] */ -#if 0 - /* TG: This doesn't need to be held on a GH by GH basis. */ - /* database holding all registered listeners for file advertising */ - pNamedData *listener_DB; - -#endif } ioGH; -/* enums for checkpointing/recovery and filereader functions */ -enum {CP_INITIAL_DATA, CP_EVOLUTION_DATA, CP_RECOVER_PARAMETERS, - CP_RECOVER_DATA, FILEREADER_DATA}; - -/* prototypes of routines that are exported by IOUtil to other IO thorns */ - -extern int IOUtil_1DLines (cGH *GH, - int dimension, - int **index, - CCTK_REAL **coord, - int **spxyz); - -extern int IOUtil_2DPlanes (cGH *GH, - int dimension, - int *index, - CCTK_REAL *coord, - int *spxyz); - -extern void IOUtil_ParseVarsForOutput (const char *var_list, - char do_output []); - -extern void IOUtil_PrepareFilename (cGH *GH, - const char *basename, - char *fname, - int called_from, - int ioproc, - int file_unchunked); - -extern int IOUtil_RegisterRecover (const char *name, - int (*func) (cGH *, const char *, int)); - -extern void IOUtil_RecoverVarsFromDatafiles (cGH *GH, - const char *in_files, - const char *in_vars); - -extern int IOUtil_RecoverParameters (int (*recoverFn) (cGH *GH, - const char *basename, - int called_from), - const char *fileExtension, - const char *fileType); - -extern char *IOUtil_GetAllParameters (cGH *GH); - -extern void IOUtil_SetAllParameters (char *parameters); - -/*** routines to handle with file advertising ***/ - -/* register a new listener with its own callbacks for file advertising */ - -extern int IOUtil_RegisterAdvertisedFileListener (cGH *GH, - const char *listener, - const IOUtil_AdvertisedFileListenerCallbacks_t *callbacks); - -/* advertise a file */ - -extern int IOUtil_AdvertiseFile (cGH *GH, - const char *filename, - const IOUtil_AdvertisedFileDesc_t *desc); - -/*** routine to output timing information ***/ - -extern void IOUtil_PrintTimings (const char *description, - int ntimers, - int timers[/* ntimers */], - const char *timer_descriptions[/* ntimers */]); #ifdef __cplusplus } #endif -#endif /* __IOGH_H__*/ +#endif /* _IOGH_H_ */ |