Got ncFilter compiling.

This commit is contained in:
Ward Fisher 2019-06-18 14:22:46 -06:00
parent 444e3837ff
commit b8e7b89359
3 changed files with 17 additions and 12 deletions

View File

@ -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__);
}

View File

@ -10,12 +10,15 @@ namespace netCDF
{
class NcFilter
{
public:
~NcFilter();
//constructor
NcFilter ();
public:
//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*);
};
}