mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-27 07:49:52 +08:00
Got ncFilter compiling.
This commit is contained in:
parent
444e3837ff
commit
b8e7b89359
@ -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__);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -627,7 +627,7 @@ void NcVar::getCompressionParameters(bool& shuffleFilterEnabled, bool& deflateFi
|
||||
|
||||
////////////////////
|
||||
|
||||
// setting filter details
|
||||
// setting filter details
|
||||
//Aodhan adding stuff
|
||||
|
||||
////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user