bes  Updated for version 3.20.6
HDFEOS2CFStrField.h
Go to the documentation of this file.
1 // This file is part of the hdf4_handler implementing for the CF-compliant
2 // Copyright (c) 2011-2013 The HDF Group, Inc. and OPeNDAP, Inc.
3 //
4 // This is free software; you can redistribute it and/or modify it under the
5 // terms of the GNU Lesser General Public License as published by the Free
6 // Software Foundation; either version 2.1 of the License, or (at your
7 // option) any later version.
8 //
9 // This software is distributed in the hope that it will be useful, but
10 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 // License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 //
18 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
19 // You can contact The HDF Group, Inc. at 1800 South Oak Street,
20 // Suite 203, Champaign, IL 61820
21 
29 
30 #ifdef USE_HDFEOS2_LIB
31 #ifndef _HDFEOS2CFSTRFIELD_H
32 #define _HDFEOS2CFSTRFIELD_H
33 
34 // STL includes
35 #include <string>
36 
37 // DODS includes
38 #include <dods-limits.h>
39 #include <Array.h>
40 #include "mfhdf.h"
41 #include "hdf.h"
42 #include "HdfEosDef.h"
43 
44 
45 class HDFEOS2CFStrField:public libdap::Array {
46  public:
47  HDFEOS2CFStrField(
48  const int rank,
49  const int gsfd,
50  const std::string &filename,
51  const std::string &objname,
52  const std::string &varname,
53  int grid_or_swath,
54  const std::string &n="",
55  libdap::BaseType*v=0):
56  libdap::Array (n, v),
57  rank(rank),
58  gsfd(gsfd),
59  filename(filename),
60  objname(objname),
61  varname(varname),
62  grid_or_swath(grid_or_swath)
63  {
64  }
65 
66  virtual ~ HDFEOS2CFStrField()
67  {
68  }
69  virtual libdap::BaseType *ptr_duplicate(){
70  return new HDFEOS2CFStrField(*this);
71  }
72 
73  // Standard way to pass the coordinates of the subsetted region from the client to the handlers
74  int format_constraint (int *cor, int *step, int *edg);
75 
76  virtual bool read();
77  private:
78  int rank;
79  int32 gsfd;
80  std::string filename;
81  std::string objname;
82  std::string varname;
83  int grid_or_swath;
84 
85 };
86 
87 #endif // _HDFEOS2CFSTRFIELD_H
88 #endif
89 
libdap
Definition: BESDapFunctionResponseCache.h:35