bes  Updated for version 3.20.13
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 = nullptr):
16  HDF5BaseArray (n, v), proj_code(eos5_proj_code), svalue (eos2_svalue),evalue(eos2_evalue),tnumelm(eos2_dim_size) {
17  }
18  ~ HDF5CFGeoCF1D () override = default;
19 
20 #if 0
21  // Standard way to pass the coordinates of the subsetted region from the client to the handlers
22  //int format_constraint (int *cor, int *step, int *edg);
23 #endif
24  void read_data_NOT_from_mem_cache(bool add_cache,void*buf) override;
25 
26  libdap::BaseType *ptr_duplicate () override
27  {
28  return new HDF5CFGeoCF1D (*this);
29  }
30 
31  bool read () override;
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
A helper class that aims to reduce code redundence for different special CF derived array class For e...