10 #ifdef USE_HDFEOS2_LIB
11 #ifndef HDFEOS2ARRAY_SWATHGEOFIELD_H
12 #define HDFEOS2ARRAY_SWATHGEOFIELD_H
14 #include <libdap/Array.h>
15 #include "HDFCFUtil.h"
16 #include "HdfEosDef.h"
19 class HDFEOS2ArraySwathGeoField:
public libdap::Array
22 HDFEOS2ArraySwathGeoField (
int rank,
const std::string & filename,
const int swathfd,
const std::string & swathname,
const std::string & fieldname,
const string & n =
"", libdap::BaseType * v =
nullptr):
27 swathname (swathname),
28 fieldname (fieldname) {
30 ~ HDFEOS2ArraySwathGeoField ()
override =
default;
33 int format_constraint (
int *cor,
int *step,
int *edg);
35 libdap::BaseType *ptr_duplicate ()
override
37 return new HDFEOS2ArraySwathGeoField (*
this);
41 bool read ()
override;
54 std::string swathname;
57 std::string fieldname;