MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Macros

#define NARRVALS(Arr)   (sizeof(Arr)/sizeof(Arr[0]))
 
#define CHECK_SYMBOL(A)   if (!strncmp(str, #A, strlen(str))) return A
 
#define CHECK_SYMBOLN_INT(A)
 
#define CHECK_SYMBOLN_STR(A)
 
#define CHECK_SYMBOLN_SYM(A)
 

Functions

static void CleanupDriverStuff ()
 
static void MakeDriverOpts (DBoptlist **_opts, int *opts_id)
 
static int StringToDriver (const char *str)
 
static int process_args (int argi, int argc, char *argv[])
 
static void * CreateSiloFile (const char *fname, const char *nsname, void *userData)
 
static void * OpenSiloFile (const char *fname, const char *nsname, MACSIO_MIF_ioFlags_t ioFlags, void *userData)
 
static void CloseSiloFile (void *file, void *userData)
 
static void write_rect_mesh_part (DBfile *dbfile, json_object *part)
 
static void write_mesh_part (DBfile *dbfile, json_object *part)
 
static void WriteMultiXXXObjects (json_object *main_obj, DBfile *siloFile, int dumpn, MACSIO_MIF_baton_t *bat)
 
static void WriteDecompMesh (json_object *main_obj, DBfile *siloFile, int dumpn, MACSIO_MIF_baton_t *bat)
 
static void main_dump (int argi, int argc, char **argv, json_object *main_obj, int dumpn, double dumpt)
 
static void DBSplitMultiName (char *mname, char **file, char **dir, char **obj)
 
static char const * DBGetFilename (DBfile const *f)
 
static void main_load (int argi, int argc, char **argv, char const *path, json_object *main_obj, json_object **data_read_obj)
 
static int register_this_interface ()
 

Variables

static DBoptlist * driver_opts [] = {0,0,0,0,0,0,0,0,0,0}
 
static int driver_opts_ids [] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
 
static int driver_ints [100]
 
static int driver_nints = 0
 
static char * driver_strs [] = {0,0,0,0,0,0,0,0,0,0}
 
static int driver_nstrs = 0
 
static const int driver_nopts = sizeof(driver_opts)/sizeof(driver_opts[0])
 
static char const * iface_name = "silo"
 
static char const * iface_ext = "silo"
 
static const char * filename
 
static int has_mesh = 0
 
static int driver = DB_HDF5
 
static int show_all_errors = FALSE
 
static int dummy = register_this_interface()
 

Detailed Description

Macro Definition Documentation

#define NARRVALS (   Arr)    (sizeof(Arr)/sizeof(Arr[0]))

Definition at line 62 of file macsio_silo.c.

#define CHECK_SYMBOL (   A)    if (!strncmp(str, #A, strlen(str))) return A

Definition at line 68 of file macsio_silo.c.

#define CHECK_SYMBOLN_INT (   A)
Value:
if (!strncmp(tok, #A, strlen(#A))) \
{ \
int n = sscanf(tok, #A"=%d", &driver_ints[driver_nints]);\
if (n == 1) \
{ \
DBAddOption(opts, A, &driver_ints[driver_nints]);\
got_it = 1; \
} \
}
static int driver_ints[100]
Definition: macsio_silo.c:102
static int driver_nints
Definition: macsio_silo.c:103

Definition at line 70 of file macsio_silo.c.

#define CHECK_SYMBOLN_STR (   A)
Value:
if (!strncmp(tok, #A, strlen(#A))) \
{ \
driver_strs[driver_nstrs] = strdup(&tok[strlen(#A)]+1);\
DBAddOption(opts, A, driver_strs[driver_nstrs]); \
got_it = 1; \
}
static int driver_nstrs
Definition: macsio_silo.c:105
static char * driver_strs[]
Definition: macsio_silo.c:104

Definition at line 82 of file macsio_silo.c.

#define CHECK_SYMBOLN_SYM (   A)
Value:
if (!strncmp(tok, #A, strlen(#A))) \
{ \
driver_ints[driver_nints] = StringToDriver(&tok[strlen(#A)]+1);\
DBAddOption(opts, A, &driver_ints[driver_nints]); \
got_it = 1; \
}
static int StringToDriver(const char *str)
Definition: macsio_silo.c:139
static int driver_ints[100]
Definition: macsio_silo.c:102
static int driver_nints
Definition: macsio_silo.c:103

Definition at line 91 of file macsio_silo.c.

Function Documentation

static void CleanupDriverStuff ( )
static

Definition at line 108 of file macsio_silo.c.

static void MakeDriverOpts ( DBoptlist **  _opts,
int *  opts_id 
)
static

Definition at line 120 of file macsio_silo.c.

static int StringToDriver ( const char *  str)
static

Definition at line 139 of file macsio_silo.c.

static int process_args ( int  argi,
int  argc,
char *  argv[] 
)
static

Definition at line 270 of file macsio_silo.c.

static void* CreateSiloFile ( const char *  fname,
const char *  nsname,
void *  userData 
)
static

Definition at line 318 of file macsio_silo.c.

static void* OpenSiloFile ( const char *  fname,
const char *  nsname,
MACSIO_MIF_ioFlags_t  ioFlags,
void *  userData 
)
static

Definition at line 330 of file macsio_silo.c.

static void CloseSiloFile ( void *  file,
void *  userData 
)
static

Definition at line 344 of file macsio_silo.c.

static void write_rect_mesh_part ( DBfile *  dbfile,
json_object part 
)
static

Definition at line 351 of file macsio_silo.c.

static void write_mesh_part ( DBfile *  dbfile,
json_object part 
)
static

Definition at line 397 of file macsio_silo.c.

static void WriteMultiXXXObjects ( json_object main_obj,
DBfile *  siloFile,
int  dumpn,
MACSIO_MIF_baton_t bat 
)
static

Definition at line 403 of file macsio_silo.c.

static void WriteDecompMesh ( json_object main_obj,
DBfile *  siloFile,
int  dumpn,
MACSIO_MIF_baton_t bat 
)
static

Definition at line 484 of file macsio_silo.c.

static void main_dump ( int  argi,
int  argc,
char **  argv,
json_object main_obj,
int  dumpn,
double  dumpt 
)
static

Definition at line 547 of file macsio_silo.c.

static void DBSplitMultiName ( char *  mname,
char **  file,
char **  dir,
char **  obj 
)
static

Definition at line 663 of file macsio_silo.c.

static char const* DBGetFilename ( DBfile const *  f)
static

Definition at line 705 of file macsio_silo.c.

static void main_load ( int  argi,
int  argc,
char **  argv,
char const *  path,
json_object main_obj,
json_object **  data_read_obj 
)
static

Definition at line 712 of file macsio_silo.c.

static int register_this_interface ( )
static

Definition at line 871 of file macsio_silo.c.

Variable Documentation

DBoptlist* driver_opts[] = {0,0,0,0,0,0,0,0,0,0}
static

Definition at line 100 of file macsio_silo.c.

int driver_opts_ids[] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
static

Definition at line 101 of file macsio_silo.c.

int driver_ints[100]
static

Definition at line 102 of file macsio_silo.c.

int driver_nints = 0
static

Definition at line 103 of file macsio_silo.c.

char* driver_strs[] = {0,0,0,0,0,0,0,0,0,0}
static

Definition at line 104 of file macsio_silo.c.

int driver_nstrs = 0
static

Definition at line 105 of file macsio_silo.c.

const int driver_nopts = sizeof(driver_opts)/sizeof(driver_opts[0])
static

Definition at line 106 of file macsio_silo.c.

char const* iface_name = "silo"
static

Definition at line 261 of file macsio_silo.c.

char const* iface_ext = "silo"
static

Definition at line 262 of file macsio_silo.c.

const char* filename
static

Definition at line 264 of file macsio_silo.c.

int has_mesh = 0
static

Definition at line 265 of file macsio_silo.c.

int driver = DB_HDF5
static

Definition at line 266 of file macsio_silo.c.

int show_all_errors = FALSE
static

Definition at line 267 of file macsio_silo.c.

int dummy = register_this_interface()
static

Definition at line 900 of file macsio_silo.c.