bes  Updated for version 3.20.6
HDF5CFGeoCF1D.h
1 // This file is part of the hdf5 data handler for the OPeNDAP data server.
3 // Authors: MuQun Yang <myang6@hdfgroup.org>
4 // Copyright (c) 2017 The HDF Group
6 
7 #ifndef HDF5CFGEO_CF1D_H
8 #define HDF5CFGEO_CF1D_H
9 
10 #include "HDF5BaseArray.h"
11 
13 {
14  public:
15  HDF5CFGeoCF1D (EOS5GridPCType eos5_proj_code, double eos2_svalue, double eos2_evalue, int eos2_dim_size, const std::string & n = "", libdap::BaseType * v = 0):
16  HDF5BaseArray (n, v), proj_code(eos5_proj_code), svalue (eos2_svalue),evalue(eos2_evalue),tnumelm(eos2_dim_size) {
17  }
18  virtual ~ HDF5CFGeoCF1D ()
19  {
20  }
21 
22  // Standard way to pass the coordinates of the subsetted region from the client to the handlers
23  //int format_constraint (int *cor, int *step, int *edg);
24  virtual void read_data_NOT_from_mem_cache(bool add_cache,void*buf);
25 
26  libdap::BaseType *ptr_duplicate ()
27  {
28  return new HDF5CFGeoCF1D (*this);
29  }
30 
31  virtual bool read ();
32 
33  private:
34 
35  // Projection code, this is not currently used. It may be used as other projections are supported.
36  EOS5GridPCType proj_code;
37 
38  // Start value
39  double svalue;
40 
41  // End value
42  double evalue;
43 
44  // Total number of elements
45  int tnumelm;
46 };
47 
48 
49 #endif
HDF5BaseArray.h
A helper class that aims to reduce code redundence for different special CF derived array class For e...
HDF5BaseArray
Definition: HDF5BaseArray.h:55
HDF5CFGeoCF1D
Definition: HDF5CFGeoCF1D.h:12