OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HDFSPArray_RealField.h
Go to the documentation of this file.
1 // This file is part of the hdf4 data handler for the OPeNDAP data server.
3 // It retrieves the real field values for some special NASA HDF data.
4 // Authors: MuQun Yang <myang6@hdfgroup.org>
5 // Copyright (c) 2010-2012 The HDF Group
7 
8 #ifndef HDFSPARRAY_REALFIELD_H
9 #define HDFSPARRAY_REALFIELD_H
10 
11 #include "mfhdf.h"
12 #include "hdf.h"
13 
14 #include "Array.h"
15 
16 #include "HDFSPEnumType.h"
17 
18 using namespace libdap;
19 
20 class HDFSPArray_RealField:public Array
21 {
22  public:
23  HDFSPArray_RealField (int32 rank, const std::string& filename, const int sdfd, int32 fieldref, int32 dtype, SPType & sptype, const std::string & fieldname, const std::string & n = "", BaseType * v = 0):
24  Array (n, v),
25  rank (rank),
26  filename(filename),
27  sdfd (sdfd),
28  fieldref (fieldref),
29  dtype (dtype),
30  sptype (sptype),
31  name (fieldname) {
32  }
34  {
35  }
36  int format_constraint (int *cor, int *step, int *edg);
37 
38  BaseType *ptr_duplicate ()
39  {
40  return new HDFSPArray_RealField (*this);
41  }
42 
43  virtual bool read ();
44 
45  private:
46  int32 rank;
47  string filename;
48  int32 sdfd;
49  int32 fieldref;
50  int32 dtype;
51  SPType sptype;
52  std::string name;
53 };
54 
55 
56 #endif
static class NCMLUtil overview
SPType
Definition: HDFSPEnumType.h:4
HDFSPArray_RealField(int32 rank, const std::string &filename, const int sdfd, int32 fieldref, int32 dtype, SPType &sptype, const std::string &fieldname, const std::string &n="", BaseType *v=0)