-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHDFCFStrField.h
More file actions
74 lines (56 loc) · 1.81 KB
/
HDFCFStrField.h
File metadata and controls
74 lines (56 loc) · 1.81 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
71
72
73
74
/////////////////////////////////////////////////////////////////////////////
// This file is part of the hdf4 data handler for the OPeNDAP data server.
// It retrieves the HDF4 DFNT_CHAR >1D array and then send to DAP as a DAP string array for the CF option.
// Authors: MuQun Yang <myang6@hdfgroup.org> Eunsoo Seo
// Copyright (c) 2010-2012 The HDF Group
/////////////////////////////////////////////////////////////////////////////
#ifndef HDFCFSTR_FIELD_H
#define HDFCFSTR_FIELD_H
#include <libdap/Array.h>
#include "HDFCFUtil.h"
class HDFCFStrField:public libdap::Array
{
public:
HDFCFStrField (int rank,
const std::string & filename,
bool is_vdata,
const int h4fd,
int32 fieldref,
int32 fieldorder,
const std::string & fieldname,
const std::string & n = "",
libdap::BaseType * v = 0):
Array (n, v),
rank (rank),
filename(filename),
is_vdata(is_vdata),
h4fd(h4fd),
fieldref(fieldref),
fieldorder(fieldorder),
fieldname(fieldname)
{
}
virtual ~ HDFCFStrField ()
{
}
// Standard way to pass the coordinates of the subsetted region from the client to the handlers
int format_constraint (int *cor, int *step, int *edg);
BaseType *ptr_duplicate ()
{
return new HDFCFStrField (*this);
}
// Read the data.
virtual bool read ();
private:
// Field array rank
int rank;
// file name
std::string filename;
bool is_vdata;
int h4fd;
int32 fieldref;
int32 fieldorder;
// field name
std::string fieldname;
};
#endif