bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDFEOS2GeoCF1D.h
1
2// This file is part of the hdf4 data handler for the OPeNDAP data server.
3// Authors: Kent Yang <myang6@hdfgroup.org>
4// Copyright (c) The HDF Group
6
7#ifdef USE_HDFEOS2_LIB
8#ifndef HDFEOS2GEO_CF1D_H
9#define HDFEOS2GEO_CF1D_H
10
11#include <libdap/Array.h>
12
13class HDFEOS2GeoCF1D:public libdap::Array
14{
15 public:
16 HDFEOS2GeoCF1D (int eos2_proj_code, double eos2_svalue, double eos2_evalue, int eos2_dim_size, const std::string & n = "", libdap::BaseType * v = nullptr):
17 libdap::Array (n, v), proj_code(eos2_proj_code), svalue (eos2_svalue),evalue(eos2_evalue),tnumelm(eos2_dim_size) {
18 }
19 ~ HDFEOS2GeoCF1D () override = default;
20
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
24 libdap::BaseType *ptr_duplicate () override
25 {
26 return new HDFEOS2GeoCF1D (*this);
27 }
28
29 bool read () override;
30
31 private:
32
33 // Projection code, currently not used.
34 int proj_code;
35
36 // Start value
37 double svalue;
38
39 // End value
40 double evalue;
41
42 // Total number of elements
43 int tnumelm;
44};
45
46
47#endif
48#endif