21
21
 
 *  attribute name and reads and displays its value. Then index of the
22
22
 
 *  third attribute is used to read and display attribute values.
23
23
 
 *  The H5Aiterate function is used to iterate through the dataset attributes,
24
24
 
 *  and display their names. The function is also reads and displays the values
25
25
 
 *  of the array attribute.
26
26
 
 */
27
27
 
28
28
 
#include <stdlib.h>
29
29
 
30
30
 
#include "hdf5.h"
 
31
+
#include "rest_vol_public.h"
31
32
 
32
33
 
#define H5FILE_NAME "Attributes.h5"
33
34
 
34
35
 
#define FILE_NAME_MAX_LENGTH 256
35
36
 
36
37
 
#define RANK  1   /* Rank and size of the dataset  */
37
38
 
#define SIZE  7
38
39
 
39
40
 
#define ARANK  2   /* Rank and dimension sizes of the first dataset attribute */
40
41
 
#define ADIM1  2