bes  Updated for version 3.20.6
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-2016 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 #include <D4Attributes.h>
42 
43 const 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, 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(std::string s);
68 };
69 #endif
HDF5CFDAPUtil::octstring
static string octstring(unsigned char val)
Helper function for escattr.
Definition: h5cfdaputil.cc:76
HDF5CFDAPUtil::daptype_strrep_to_dap4_attrtype
static D4AttributeType daptype_strrep_to_dap4_attrtype(std::string s)
Definition: h5cfdaputil.cc:303
HDF5CFUtil.h
This file includes several helper functions for translating HDF5 to CF-compliant.
HDF5CFDAPUtil::escattr
static string escattr(string s)
Definition: h5cfdaputil.cc:43
HDF5CFDAPUtil
Definition: h5cfdaputil.h:46