OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
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-2013 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 1800 South Oak Street,
22 // Suite 203, 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 
42 #define NC_JAVA_STR_SIZE_LIMIT 32767
43 
44 
45 struct HDF5CFDAPUtil {
46 
47  static H5DataType get_mem_dtype(H5DataType, size_t);
48  static string print_type(H5DataType h5type);
49  static string print_attr(H5DataType h5type, int loc, void *vals);
50  static void replace_double_quote(string &str);
51  static bool check_beskeys(const string key);
52 
59  static string escattr(string s);
60 
62  static string octstring(unsigned char val);
63 };
64 #endif
static void replace_double_quote(string &str)
Definition: h5cfdaputil.cc:99
static bool check_beskeys(const string key)
Definition: h5cfdaputil.cc:39
static H5DataType get_mem_dtype(H5DataType, size_t)
Definition: h5cfdaputil.cc:171
H5DataType
Definition: HDF5CFUtil.h:54
static string print_attr(H5DataType h5type, int loc, void *vals)
Definition: h5cfdaputil.cc:180
static string print_type(H5DataType h5type)
Definition: h5cfdaputil.cc:115
static string escattr(string s)
A customized escaping function to escape special characters following OPeNDAP's escattr function that...
Definition: h5cfdaputil.cc:57
static string octstring(unsigned char val)
Helper function for escattr.
Definition: h5cfdaputil.cc:89
This file includes several helper functions for translating HDF5 to CF-compliant. ...