diff --git a/cxx4/ncFilter.cpp b/cxx4/ncFilter.cpp index 95aa01f..a3eace2 100644 --- a/cxx4/ncFilter.cpp +++ b/cxx4/ncFilter.cpp @@ -7,20 +7,22 @@ #include "ncFilter.h" #include "ncCheck.h" +#include "netcdf.h" using namespace std; using namespace netCDF; -NcFilter::~NcFilter(); +NcFilter::~NcFilter() { + +}; // open a file from path and mode -void NcFilter::setFilter( unsigned int id, size_t nparams, - const unsigned int* parms) const +void NcFilter::setFilter(unsigned int ncid, unsigned int varid, unsigned int filterId, size_t nparams, const unsigned int* parms) { - ncCheck(nc_def_var_filter(groupId,myId,id,nparams,parms),__FILE__,__LINE__); + ncCheck(nc_def_var_filter(ncid,varid,filterId,nparams,parms),__FILE__,__LINE__); } -void NcFilter::getFilter(unsigned int* idp, size_t* nparamsp, unsigned int* params) const +void NcFilter::getFilter(unsigned int ncid, unsigned int varid, unsigned int* idp, size_t* nparamsp, unsigned int* params) { - ncCheck(nc_inq_var_filter(groupId, myId, idp, nparamsp, params),__FILE__,__LINE__); + ncCheck(nc_inq_var_filter(ncid, varid, idp, nparamsp, params),__FILE__,__LINE__); } diff --git a/cxx4/ncFilter.h b/cxx4/ncFilter.h index 74073b9..8354c80 100644 --- a/cxx4/ncFilter.h +++ b/cxx4/ncFilter.h @@ -10,13 +10,16 @@ namespace netCDF { class NcFilter { - //constructor - NcFilter (); public: + ~NcFilter(); + + //constructor + NcFilter (); + //member function - void setFilter(); - void getFilter(); - }; + void setFilter(unsigned int, unsigned int, unsigned int, size_t, const unsigned int*); + void getFilter(unsigned int, unsigned int, unsigned int*, size_t*, unsigned int*); + }; } #endif diff --git a/cxx4/ncVar.cpp b/cxx4/ncVar.cpp index 0c2d81c..7216a86 100644 --- a/cxx4/ncVar.cpp +++ b/cxx4/ncVar.cpp @@ -627,7 +627,7 @@ void NcVar::getCompressionParameters(bool& shuffleFilterEnabled, bool& deflateFi //////////////////// -// setting filter details +// setting filter details //Aodhan adding stuff ////////////////////