bes Updated for version 3.20.10
HDFEOS2GeoCF1D.h
1
2// This file is part of the hdf4 data handler for the OPeNDAP data server.
3// Authors: MuQun Yang <myang6@hdfgroup.org>
4// Copyright (c) 2009 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 = 0):
17 libdap::Array (n, v), proj_code(eos2_proj_code), svalue (eos2_svalue),evalue(eos2_evalue),tnumelm(eos2_dim_size) {
18 }
19 virtual ~ HDFEOS2GeoCF1D ()
20 {
21 }
22
23 // Standard way to pass the coordinates of the subsetted region from the client to the handlers
24 int format_constraint (int *cor, int *step, int *edg);
25
26 libdap::BaseType *ptr_duplicate ()
27 {
28 return new HDFEOS2GeoCF1D (*this);
29 }
30
31 virtual bool read ();
32
33 private:
34
35 // Projection code
36 int 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
50#endif