HL-HDF
hlhdf_read.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
26#ifndef HLHDF_READ_H
27#define HLHDF_READ_H
28#include "hlhdf_types.h"
29
39HL_NodeList* HLNodeList_readFrom(const char* filename, const char* fromPath);
40
49HL_NodeList* HLNodeList_read(const char* filename);
50
58int HLNodeList_selectNode(HL_NodeList* nodelist, const char* name);
59
67
76
85
94
102int HLNodeList_deselectNode(HL_NodeList* nodelist, const char* name);
103
111
119HL_Node* HLNodeList_fetchNode(HL_NodeList* nodelist, const char* name);
120
121#endif
int HLNodeList_deselectNode(HL_NodeList *nodelist, const char *name)
De-selects the node named 'name' to be retrived when fetching data from the nodelist file.
Definition hlhdf_read.c:1122
HL_NodeList * HLNodeList_readFrom(const char *filename, const char *fromPath)
Reads an HDF5 file with name filename from the group fromPath and downwards.
Definition hlhdf_read.c:951
int HLNodeList_selectAllNodes(HL_NodeList *nodelist)
Marks all nodes in the nodelist for retrival.
Definition hlhdf_read.c:1050
int HLNodeList_selectNode(HL_NodeList *nodelist, const char *name)
Selects the node named 'name' from which to fetch data.
Definition hlhdf_read.c:1028
HL_NodeList * HLNodeList_read(const char *filename)
Reads an HDF5 file with name filename from the root group ("/") and downwards.
Definition hlhdf_read.c:1014
int HLNodeList_selectAllMetadataNodes(HL_NodeList *nodelist)
Selects all metadata including metadata about datasets but will exclude data for datasets.
Definition hlhdf_read.c:1081
int HLNodeList_selectMetadataNodes(HL_NodeList *nodelist)
Selects all metadata nodes in the nodelist to be fetched, ie.
Definition hlhdf_read.c:1061
HL_Node * HLNodeList_fetchNode(HL_NodeList *nodelist, const char *name)
Behaves as a combination of HLNodeList_selectNode()/fetch()/getNode().
Definition hlhdf_read.c:1205
int HLNodeList_fetchMarkedNodes(HL_NodeList *nodelist)
Fills all nodes (marked as select) with data.
Definition hlhdf_read.c:1145
int HLNodeList_selectOnlyDatasetNodes(HL_NodeList *nodelist)
Only select data set nodes for fetching.
Definition hlhdf_read.c:1103
Type definitions that are used in HLHDF.
Represents a HDF5 file.
Definition hlhdf_nodelist.c:39
Represents a HDF5 object/attribute/reference/...
Definition hlhdf_node.c:40