Mercurial > octave-nkf
comparison src/ls-hdf5.h @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | cda4aa780d58 |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
55 else if (mode & std::ios::out) | 55 else if (mode & std::ios::out) |
56 { | 56 { |
57 if (mode & std::ios::app && H5Fis_hdf5 (name) > 0) | 57 if (mode & std::ios::app && H5Fis_hdf5 (name) > 0) |
58 file_id = H5Fopen (name, H5F_ACC_RDWR, H5P_DEFAULT); | 58 file_id = H5Fopen (name, H5F_ACC_RDWR, H5P_DEFAULT); |
59 else | 59 else |
60 file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, | 60 file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, |
61 H5P_DEFAULT); | 61 H5P_DEFAULT); |
62 } | 62 } |
63 if (file_id < 0) | 63 if (file_id < 0) |
64 std::ios::setstate (std::ios::badbit); | 64 std::ios::setstate (std::ios::badbit); |
65 | 65 |
66 current_item = 0; | 66 current_item = 0; |
67 } | 67 } |
68 | 68 |
69 void close () | 69 void close () |
70 { | 70 { |
71 if (file_id >= 0) | 71 if (file_id >= 0) |
72 { | 72 { |
73 if (H5Fclose (file_id) < 0) | 73 if (H5Fclose (file_id) < 0) |
74 std::ios::setstate (std::ios::badbit); | 74 std::ios::setstate (std::ios::badbit); |
75 file_id = -1; | 75 file_id = -1; |
85 else if (mode & std::ios::out) | 85 else if (mode & std::ios::out) |
86 { | 86 { |
87 if (mode & std::ios::app && H5Fis_hdf5 (name) > 0) | 87 if (mode & std::ios::app && H5Fis_hdf5 (name) > 0) |
88 file_id = H5Fopen (name, H5F_ACC_RDWR, H5P_DEFAULT); | 88 file_id = H5Fopen (name, H5F_ACC_RDWR, H5P_DEFAULT); |
89 else | 89 else |
90 file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, | 90 file_id = H5Fcreate (name, H5F_ACC_TRUNC, H5P_DEFAULT, |
91 H5P_DEFAULT); | 91 H5P_DEFAULT); |
92 } | 92 } |
93 if (file_id < 0) | 93 if (file_id < 0) |
94 std::ios::setstate (std::ios::badbit); | 94 std::ios::setstate (std::ios::badbit); |
95 | 95 |
197 extern OCTINTERP_API herr_t | 197 extern OCTINTERP_API herr_t |
198 hdf5_add_attr (hid_t loc_id, const char *attr_name); | 198 hdf5_add_attr (hid_t loc_id, const char *attr_name); |
199 | 199 |
200 | 200 |
201 extern OCTINTERP_API herr_t | 201 extern OCTINTERP_API herr_t |
202 hdf5_add_scalar_attr (hid_t loc_id, hid_t type_id, | 202 hdf5_add_scalar_attr (hid_t loc_id, hid_t type_id, |
203 const char *attr_name, void *buf); | 203 const char *attr_name, void *buf); |
204 | 204 |
205 #ifdef IDX_TYPE_LONG | 205 #ifdef IDX_TYPE_LONG |
206 #define H5T_NATIVE_IDX H5T_NATIVE_LONG | 206 #define H5T_NATIVE_IDX H5T_NATIVE_LONG |
207 #else | 207 #else |