bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
h5cfdaputil.h
Go to the documentation of this file.
1// This file is part of hdf5_handler: an HDF5 file handler for the OPeNDAP
2// data server.
3
4// Copyright (c) 2011-2023 The HDF Group, Inc. and OPeNDAP, Inc.
5//
6// This is free software; you can redistribute it and/or modify it under the
7// terms of the GNU Lesser General Public License as published by the Free
8// Software Foundation; either version 2.1 of the License, or (at your
9// option) any later version.
10//
11// This software is distributed in the hope that it will be useful, but
12// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14// License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
21// You can contact The HDF Group, Inc. at 410 E University Ave,
22// Suite 200, Champaign, IL 61820
23
32
33#ifndef _HDF5CFDAPUtil_H
34#define _HDF5CFDAPUtil_H
35
36#include "HDF5CFUtil.h"
37#include <sstream>
38#include <iomanip>
39#include <TheBESKeys.h>
40#include <BESUtil.h>
41#include <libdap/D4Attributes.h>
42
43const size_t NC_JAVA_STR_SIZE_LIMIT=32767;
44
45
47
48 public:
49 static H5DataType get_mem_dtype(H5DataType, size_t);
50 static string print_type(H5DataType h5type);
51 static string print_attr(H5DataType h5type, unsigned int loc, void *vals);
52 static void replace_double_quote(string &str);
53
60 static string escattr(string s);
61
63 static string octstring(unsigned char val);
64
67 static D4AttributeType daptype_strrep_to_dap4_attrtype(const string &s);
68 static D4AttributeType print_type_dap4(H5DataType h5type);
69};
70#endif
This file includes several helper functions for translating HDF5 to CF-compliant.
static string escattr(string s)
static D4AttributeType daptype_strrep_to_dap4_attrtype(const string &s)
static string octstring(unsigned char val)
Helper function for escattr.