-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHDFArray.h
More file actions
71 lines (58 loc) · 2.71 KB
/
HDFArray.h
File metadata and controls
71 lines (58 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// -*- C++ -*-
// This file is part of the hdf4 data handler for the OPeNDAP data server.
// Copyright (c) 2005 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License as published by the Free
// Software Foundation; either version 2.1 of the License, or (at your
// option) any later version.
//
// This software is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
// License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this software; if not, write to the Free Software Foundation,
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
/////////////////////////////////////////////////////////////////////////////
// Copyright 1996, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship
// acknowledged. Any commercial use must be negotiated with the
// Office of Technology Transfer at the California Institute of
// Technology. This software may be subject to U.S. export control
// laws and regulations. By accepting this software, the user
// agrees to comply with all applicable U.S. export laws and
// regulations. User has the responsibility to obtain export
// licenses, or other export authority as may be required before
// exporting such information to foreign countries or providing
// access to foreign persons.
// Author: Todd Karakashian, NASA/Jet Propulsion Laboratory
// Todd.K.Karakashian@jpl.nasa.gov
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _HDFARRAY_H
#define _HDFARRAY_H
// STL includes
#include <string>
#include <vector>
// DODS includes
#include <libdap/Array.h>
#include "ReadTagRef.h"
class HDFArray:public libdap::Array, public ReadTagRef {
public:
HDFArray(const std::string & n, const std::string &d, libdap::BaseType * v);
virtual ~ HDFArray();
virtual libdap::BaseType *ptr_duplicate();
virtual bool read();
virtual bool read_tagref(int32 tag, int32 ref, int &error);
bool GetSlabConstraint(std::vector < int >&start_array,
std::vector < int >&edge_array,
std::vector < int >&stride_array);
virtual void transfer_attributes(libdap::AttrTable *at_container);
virtual void transfer_dimension_attribute(libdap::AttrTable *dim);
};
#endif // _HDFARRAY_H