PageRenderTime 48ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/ExternalLibs/HDF5_1.8.6_x64/include/H5TBpublic.h

#
C++ Header | 233 lines | 138 code | 45 blank | 50 comment | 0 complexity | 65c1b8529df75531c74ae36d3f1d28e9 MD5 | raw file
  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2. * Copyright by The HDF Group. *
  3. * Copyright by the Board of Trustees of the University of Illinois. *
  4. * All rights reserved. *
  5. * *
  6. * This file is part of HDF5. The full HDF5 copyright notice, including *
  7. * terms governing use, modification, and redistribution, is contained in *
  8. * the files COPYING and Copyright.html. COPYING can be found at the root *
  9. * of the source code distribution tree; Copyright.html can be found at the *
  10. * root level of an installed copy of the electronic HDF5 document set and *
  11. * is linked from the top-level documents page. It can also be found at *
  12. * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
  13. * access to either file, you may request a copy from help@hdfgroup.org. *
  14. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  15. #ifndef _H5TBpublic_H
  16. #define _H5TBpublic_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /*-------------------------------------------------------------------------
  21. *
  22. * Create functions
  23. *
  24. *-------------------------------------------------------------------------
  25. */
  26. H5_HLDLL herr_t H5TBmake_table( const char *table_title,
  27. hid_t loc_id,
  28. const char *dset_name,
  29. hsize_t nfields,
  30. hsize_t nrecords,
  31. size_t type_size,
  32. const char *field_names[],
  33. const size_t *field_offset,
  34. const hid_t *field_types,
  35. hsize_t chunk_size,
  36. void *fill_data,
  37. int compress,
  38. const void *buf );
  39. /*-------------------------------------------------------------------------
  40. *
  41. * Write functions
  42. *
  43. *-------------------------------------------------------------------------
  44. */
  45. H5_HLDLL herr_t H5TBappend_records( hid_t loc_id,
  46. const char *dset_name,
  47. hsize_t nrecords,
  48. size_t type_size,
  49. const size_t *field_offset,
  50. const size_t *dst_sizes,
  51. const void *buf );
  52. H5_HLDLL herr_t H5TBwrite_records( hid_t loc_id,
  53. const char *dset_name,
  54. hsize_t start,
  55. hsize_t nrecords,
  56. size_t type_size,
  57. const size_t *field_offset,
  58. const size_t *dst_sizes,
  59. const void *buf );
  60. H5_HLDLL herr_t H5TBwrite_fields_name( hid_t loc_id,
  61. const char *dset_name,
  62. const char *field_names,
  63. hsize_t start,
  64. hsize_t nrecords,
  65. size_t type_size,
  66. const size_t *field_offset,
  67. const size_t *dst_sizes,
  68. const void *buf );
  69. H5_HLDLL herr_t H5TBwrite_fields_index( hid_t loc_id,
  70. const char *dset_name,
  71. hsize_t nfields,
  72. const int *field_index,
  73. hsize_t start,
  74. hsize_t nrecords,
  75. size_t type_size,
  76. const size_t *field_offset,
  77. const size_t *dst_sizes,
  78. const void *buf );
  79. /*-------------------------------------------------------------------------
  80. *
  81. * Read functions
  82. *
  83. *-------------------------------------------------------------------------
  84. */
  85. H5_HLDLL herr_t H5TBread_table( hid_t loc_id,
  86. const char *dset_name,
  87. size_t dst_size,
  88. const size_t *dst_offset,
  89. const size_t *dst_sizes,
  90. void *dst_buf );
  91. H5_HLDLL herr_t H5TBread_fields_name( hid_t loc_id,
  92. const char *dset_name,
  93. const char *field_names,
  94. hsize_t start,
  95. hsize_t nrecords,
  96. size_t type_size,
  97. const size_t *field_offset,
  98. const size_t *dst_sizes,
  99. void *buf );
  100. H5_HLDLL herr_t H5TBread_fields_index( hid_t loc_id,
  101. const char *dset_name,
  102. hsize_t nfields,
  103. const int *field_index,
  104. hsize_t start,
  105. hsize_t nrecords,
  106. size_t type_size,
  107. const size_t *field_offset,
  108. const size_t *dst_sizes,
  109. void *buf );
  110. H5_HLDLL herr_t H5TBread_records( hid_t loc_id,
  111. const char *dset_name,
  112. hsize_t start,
  113. hsize_t nrecords,
  114. size_t type_size,
  115. const size_t *dst_offset,
  116. const size_t *dst_sizes,
  117. void *buf );
  118. /*-------------------------------------------------------------------------
  119. *
  120. * Inquiry functions
  121. *
  122. *-------------------------------------------------------------------------
  123. */
  124. H5_HLDLL herr_t H5TBget_table_info ( hid_t loc_id,
  125. const char *dset_name,
  126. hsize_t *nfields,
  127. hsize_t *nrecords );
  128. H5_HLDLL herr_t H5TBget_field_info( hid_t loc_id,
  129. const char *dset_name,
  130. char *field_names[],
  131. size_t *field_sizes,
  132. size_t *field_offsets,
  133. size_t *type_size );
  134. /*-------------------------------------------------------------------------
  135. *
  136. * Manipulation functions
  137. *
  138. *-------------------------------------------------------------------------
  139. */
  140. H5_HLDLL herr_t H5TBdelete_record( hid_t loc_id,
  141. const char *dset_name,
  142. hsize_t start,
  143. hsize_t nrecords );
  144. H5_HLDLL herr_t H5TBinsert_record( hid_t loc_id,
  145. const char *dset_name,
  146. hsize_t start,
  147. hsize_t nrecords,
  148. size_t dst_size,
  149. const size_t *dst_offset,
  150. const size_t *dst_sizes,
  151. void *buf );
  152. H5_HLDLL herr_t H5TBadd_records_from( hid_t loc_id,
  153. const char *dset_name1,
  154. hsize_t start1,
  155. hsize_t nrecords,
  156. const char *dset_name2,
  157. hsize_t start2 );
  158. H5_HLDLL herr_t H5TBcombine_tables( hid_t loc_id1,
  159. const char *dset_name1,
  160. hid_t loc_id2,
  161. const char *dset_name2,
  162. const char *dset_name3 );
  163. H5_HLDLL herr_t H5TBinsert_field( hid_t loc_id,
  164. const char *dset_name,
  165. const char *field_name,
  166. hid_t field_type,
  167. hsize_t position,
  168. const void *fill_data,
  169. const void *buf );
  170. H5_HLDLL herr_t H5TBdelete_field( hid_t loc_id,
  171. const char *dset_name,
  172. const char *field_name );
  173. /*-------------------------------------------------------------------------
  174. *
  175. * Table attribute functions
  176. *
  177. *-------------------------------------------------------------------------
  178. */
  179. H5_HLDLL herr_t H5TBAget_title( hid_t loc_id,
  180. char *table_title );
  181. H5_HLDLL herr_t H5TBAget_fill( hid_t loc_id,
  182. const char *dset_name,
  183. hid_t dset_id,
  184. unsigned char *dst_buf );
  185. #ifdef __cplusplus
  186. }
  187. #endif
  188. #endif