forked from Unidata/netcdf-c
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a57434a
commit 864687a
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/********************************************************************* | ||
* Copyright 2018, UCAR/Unidata | ||
* See netcdf/COPYRIGHT file for copying and redistribution conditions. | ||
*********************************************************************/ | ||
|
||
#include "zincludes.h" | ||
#include "zformat.h" | ||
|
||
/**************************************************/ | ||
|
||
/**************************************************/ | ||
|
||
int | ||
NCZF0_initialize(void) | ||
{ | ||
return NC_NOERR; | ||
} | ||
|
||
int | ||
NCZF0_finalize(void) | ||
{ | ||
return NC_NOERR; | ||
} | ||
|
||
int | ||
NCZF_create(NC_FILE_INFO_T* file, NCURI* uri, NCZMAP* map) | ||
{ | ||
int stat = NC_NOERR; | ||
NCZ_FILE_INFO_T* zfile = NULL; | ||
|
||
zfile = (NCZ_FILE_INFO_T*)file->format_file_info; | ||
assert(zfile != NULL); | ||
stat = zfile->dispatcher->create(file,uri,map); | ||
return THROW(stat); | ||
} | ||
|
||
int | ||
NCZF_open(NC_FILE_INFO_T* file, NCURI* uri, NCZMAP* map) | ||
{ | ||
int stat = NC_NOERR; | ||
NCZ_FILE_INFO_T* zfile = NULL; | ||
|
||
zfile = (NCZ_FILE_INFO_T*)file->format_file_info; | ||
assert(zfile != NULL); | ||
stat = zfile->dispatcher->open(file,uri,map); | ||
return THROW(stat); | ||
} | ||
|
||
int | ||
NCZF_readmeta(NC_FILE_INFO_T* file) | ||
{ | ||
int stat = NC_NOERR; | ||
NCZ_FILE_INFO_T* zfile = NULL; | ||
|
||
zfile = (NCZ_FILE_INFO_T*)file->format_file_info; | ||
assert(zfile != NULL); | ||
stat = zfile->dispatcher->readmeta(file); | ||
return THROW(stat); | ||
} | ||
|
||
int | ||
NCZF_writemeta(NC_FILE_INFO_T* file) | ||
{ | ||
int stat = NC_NOERR; | ||
NCZ_FILE_INFO_T* zfile = NULL; | ||
|
||
zfile = (NCZ_FILE_INFO_T*)file->format_file_info; | ||
assert(zfile != NULL); | ||
stat = zfile->dispatcher->writemeta(file); | ||
return THROW(stat); | ||
} | ||
|
||
/* Support lazy read */ | ||
int | ||
NCZF_readattrs(NC_FILE_INFO_T* file, NC_OBJ* container) | ||
{ | ||
int stat = NC_NOERR; | ||
NCZ_FILE_INFO_T* zfile = NULL; | ||
|
||
zfile = (NCZ_FILE_INFO_T*)file->format_file_info; | ||
assert(zfile != NULL); | ||
stat = zfile->dispatcher->readattrs(file,container); | ||
return THROW(stat); | ||
} | ||
|
||
int | ||
NCZF_close(NC_FILE_INFO_T* file) | ||
{ | ||
int stat = NC_NOERR; | ||
NCZ_FILE_INFO_T* zfile = NULL; | ||
|
||
zfile = (NCZ_FILE_INFO_T*)file->format_file_info; | ||
assert(zfile != NULL); | ||
stat = zfile->dispatcher->close(file); | ||
return THROW(stat); | ||
} |