HL-HDF
hlhdf_private.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2009 Swedish Meteorological and Hydrological Institute, SMHI,
3
4This file is part of HLHDF.
5
6HLHDF is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11HLHDF is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with HLHDF. If not, see <http://www.gnu.org/licenses/>.
18------------------------------------------------------------------------*/
19
27#ifndef HLHDF_PRIVATE_H
28#define HLHDF_PRIVATE_H
29#include "hlhdf.h"
30
37hid_t openHlHdfFile(const char* filename,const char* how);
38
45hid_t createHlHdfFile(const char* filename, HL_FileCreationProperty* property);
46
53hid_t getFixedType(hid_t type);
54
60hid_t HL_translateFormatStringToDatatype(const char* dataType);
61
67char* getTypeNameString(hid_t type);
68
75
81const char* getFormatNameString(hid_t type);
82
88char* getStringPadName(hid_t type);
89
95char* getStringCsetName(hid_t type);
96
102char* getStringCtypeName(hid_t type);
103
104
114int extractParentChildName(HL_Node* node, char** parent, char** child);
115
124int openGroupOrDataset(hid_t file_id, const char* name, hid_t* lid, HL_Type* type);
125
126#endif /* HLHDF_PRIVATE_H_ */
HL_Type
This is an enumeration variable designed to identify the type of a given node.
Definition hlhdf_types.h:222
Common functions for working with an HDF5 file through the HL-HDF API.
hid_t getFixedType(hid_t type)
Translates a HDF5 type identifier into a native type identifier.
Definition hlhdf.c:495
int extractParentChildName(HL_Node *node, char **parent, char **child)
Extracts the parent and child name from the node name.
Definition hlhdf.c:1032
int openGroupOrDataset(hid_t file_id, const char *name, hid_t *lid, HL_Type *type)
Opens a group or dataset hid and returns the type as well.
Definition hlhdf.c:1078
char * getStringCsetName(hid_t type)
Returns the CSET name as represented in HDF5.
Definition hlhdf.c:986
hid_t createHlHdfFile(const char *filename, HL_FileCreationProperty *property)
Creates a HDF5 file.
Definition hlhdf.c:425
char * getTypeNameString(hid_t type)
Returns the type as represented by HDF5.
Definition hlhdf.c:793
const char * getFormatNameString(hid_t type)
Returns the format specifier as defined by HLHDF.
Definition hlhdf.c:955
hid_t openHlHdfFile(const char *filename, const char *how)
Opens a HDF5 file by specifying the file and an option mode.
Definition hlhdf.c:405
char * getStringPadName(hid_t type)
Returns the String Pad name as represented by HDF5.
Definition hlhdf.c:965
hid_t HL_translateFormatStringToDatatype(const char *dataType)
Returns a native data type from the format specifier.
Definition hlhdf.c:777
HL_FormatSpecifier HL_getFormatSpecifierFromType(hid_t type)
Returns the format specifier for the provided type identifier.
Definition hlhdf.c:898
char * getStringCtypeName(hid_t type)
Returns the CTYPE name as represented in HDF5.
Definition hlhdf.c:1002
HL_FormatSpecifier
These are all valid format specifiers that are used within HLHDF.
Definition hlhdf_types.h:70
Properties that can be finely tuned when creating a HDF5 file.
Definition hlhdf_types.h:141
Represents a HDF5 object/attribute/reference/...
Definition hlhdf_node.c:40