netcdf-c/libdap2/constraints.h

35 lines
1.4 KiB
C
Raw Normal View History

2011-04-18 02:56:10 +08:00
/*********************************************************************
* Copyright 1993, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
*********************************************************************/
#ifndef CONSTRAINTS_H
#define CONSTRAINTS_H 1
2011-04-18 02:56:10 +08:00
extern NCerror parsedapconstraints(NCDAPCOMMON*, char*, DCEconstraint*);
extern NCerror mapconstraints(DCEconstraint*,CDFnode*);
extern NCerror qualifyconstraints(DCEconstraint* constraint);
extern NCerror computeprojectedvars(NCDAPCOMMON*,DCEconstraint*);
2011-04-18 02:56:10 +08:00
extern char* simplepathstring(NClist* segments, char* separator);
extern void makesegmentstring(NClist* segments, NCbytes* buf, char* separator);
2011-04-18 02:56:10 +08:00
extern int iswholeslice(DCEslice*, struct CDFnode* dim);
extern int iswholesegment(DCEsegment*);
extern int iswholeconstraint(DCEconstraint* con);
extern char* buildprojectionstring(NClist* projections);
extern char* buildselectionstring(NClist* selections);
extern char* buildconstraintstring(DCEconstraint* constraints);
2011-04-18 02:56:10 +08:00
extern void makewholesegment(DCEsegment*,struct CDFnode*);
extern void makewholeslice(DCEslice* slice, struct CDFnode* dim);
2011-04-18 02:56:10 +08:00
2011-11-14 12:20:19 +08:00
extern NCerror fixprojections(NClist* list);
extern int dapvar2projection(CDFnode* var, DCEprojection** projectionp);
extern int daprestrictprojection(NClist* projections, DCEprojection* var, DCEprojection** resultp);
extern int dapshiftprojection(DCEprojection*);
#endif /*CONSTRAINTS_H*/