33 #include "h4cf_header.h"
169 int32* start, int32* stride, int32* edge);
const string h4cf_get_var_name(var *v)
Retrieves the name of a variable pointed by v.
const attr * h4cf_get_var_attr_by_name(string str, var *v)
Retrieves the attribute that has str name from a variable pointed by v.
void h4cf_open(char *filename)
Opens an existing HDF-EOS2 or HDF4 file.
void h4cf_close()
Closes the access to the opened file.
const int h4cf_get_var_rank(var *v)
Retrieves the rank of a variable pointed by v.
void h4cf_get_attr_value(vector< char > *buf, attr *a)
Retrieves the data values of an attribute pointed by a and stores them into buf.
const list< attr * > h4cf_get_var_attrs(var *v)
Retrieves the attributes of a variable pointed by v.
const h4cf_data_type h4cf_get_var_type(var *v)
Retrieves the variable type of a variable pointed by v.
const list< attr * > h4cf_get_file_attrs()
Retrieves file attributes.
const int h4cf_get_attr_count(attr *a)
Retrieves the number of elements stored in an attribute pointed by a.
const string h4cf_get_attr_name(attr *a)
Retrieves the name of an attribute pointed by a.
const list< var * > h4cf_get_vars()
Retrieves variables in the file.
void h4cf_get_var_value(vector< char > *buf, var *v)
Retrieves data values of a variable pointed by v and stores them into buf.
const vector< map< string, int > > h4cf_get_var_dims(var *v)
Retrieves the dimensions of a variable pointed by v.
const map< string, int > h4cf_get_dims()
Retrieves pairs of name and size of dimension in the file.
const h4cf_data_type h4cf_get_attr_type(attr *a)
Retrieves the attribute type of an attribute pointed by a.