OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
HDF5CFArray.h
Go to the documentation of this file.
1 // This file is part of the hdf5_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 
30 
31 #ifndef _HDF5CFARRAY_H
32 #define _HDF5CFARRAY_H
33 
34 // STL includes
35 #include <string>
36 #include <vector>
37 
38 // DODS includes
39 #include "HDF5CF.h"
40 #include <Array.h>
41 
42 using namespace libdap;
43 
44 class HDF5CFArray:public Array {
45  public:
46  HDF5CFArray(int rank,
47  const hid_t file_id,
48  const string & filename,
49  H5DataType dtype,
50  const string &varfullpath,
51  const string & n="",
52  BaseType * v = 0):
53  Array(n,v),
54  rank(rank),
55  fileid(file_id),
56  filename(filename),
57  dtype(dtype),
58  varname(varfullpath)
59  {
60  }
61 
62  virtual ~ HDF5CFArray() {
63  }
64  virtual BaseType *ptr_duplicate();
65  virtual bool read();
66  int format_constraint (int *cor, int *step, int *edg);
67 
68  private:
69  int rank;
70  hid_t fileid;
71  string filename;
72  H5DataType dtype;
73  string varname;
74 };
75 
76 #endif // _HDF5CFARRAY_H
77 
static class NCMLUtil overview
H5DataType
Definition: HDF5CFUtil.h:54
HDF5CFArray(int rank, const hid_t file_id, const string &filename, H5DataType dtype, const string &varfullpath, const string &n="", BaseType *v=0)
Definition: HDF5CFArray.h:46
This class specifies the core engineering of mapping HDF5 to DAP by following CF. ...