implementation of attachments continued

This commit is contained in:
2011-03-31 15:30:16 +00:00
parent 6661eca765
commit 407bbe4d0c
5 changed files with 168 additions and 384 deletions
+10 -75
View File
@@ -13,94 +13,29 @@ H5GetNumAttachments (
h5_err_t
H5GetAttachmentInfoByIdx (
h5_file_t* const f,
const h5_size_t idx,
char* const name,
h5_size_t len_name,
h5_int64_t* const type,
h5_size_t* const npoints
const h5_size_t idx, // IN
char* const fname, // OUT
h5_size_t len_fname, // IN
h5_size_t* const fsize // OUT
);
h5_err_t
H5GetAttachmentInfoByName (
h5_file_t* const f,
char* const name,
h5_int64_t* const type,
h5_size_t* const npoints
char* const fname,
h5_size_t* const fsize
);
h5_err_t
H5WriteAttachmentBitstream (
H5AddAttachment (
h5_file_t* const f,
const char* name,
const void* const content,
const h5_size_t size
const char* fname
);
h5_err_t
H5WriteAttachmentFloat32 (
H5GetAttachment (
h5_file_t* const f,
const char* name,
const void* const content,
const h5_size_t size
);
h5_err_t
H5WriteAttachmentFloat64 (
h5_file_t* const f,
const char* name,
const void* const content,
const h5_size_t size
);
h5_err_t
H5WriteAttachmentInt32 (
h5_file_t* const f,
const char* name,
const void* const content,
const h5_size_t size
);
h5_err_t
H5WriteAttachmentInt64 (
h5_file_t* const f,
const char* name,
const void* const content,
const h5_size_t size
);
h5_err_t
H5ReadAttachmentBitstream (
h5_file_t* const f,
const char* name,
void* const content
);
h5_err_t
H5ReadAttachmentFloat32 (
h5_file_t* const f,
const char* name,
void* const content
);
h5_err_t
H5ReadAttachmentFloat64 (
h5_file_t* const f,
const char* name,
void* const content
);
h5_err_t
H5ReadAttachmentInt32 (
h5_file_t* const f,
const char* name,
void* const content
);
h5_err_t
H5ReadAttachmentInt64 (
h5_file_t* const f,
const char* name,
void* const content
const char* name
);
h5_err_t
+9 -16
View File
@@ -2,12 +2,9 @@
#define __H5_ATTACH_H
h5_err_t
h5_write_attachment (
h5_add_attachment (
h5_file_t* const f,
const char* const name,
const hid_t type,
const char* const content,
const h5_size_t size
const char* const name
);
h5_ssize_t
@@ -19,26 +16,22 @@ h5_err_t
h5_get_attachment_info_by_idx (
h5_file_t* const f,
const h5_size_t idx, // IN
char* const name, // OUT
h5_size_t len_name, // IN
h5_int64_t* const type, // OUT
h5_size_t* const npoints // OUT
char* const fname, // OUT
h5_size_t len_fname, // IN
h5_size_t* const fsize // OUT
);
h5_err_t
h5_get_attachment_info_by_name (
h5_file_t* const f,
const char* const name, // IN
h5_int64_t* const type, // OUT
h5_size_t* const npoints // OUT
const char* const fname, // IN
h5_size_t* const fsize // OUT
);
h5_err_t
h5_read_attachment (
h5_get_attachment (
h5_file_t* const f,
const char* const name,
const hid_t type,
void* const content
const char* const fname
);
h5_err_t
+2
View File
@@ -1,6 +1,8 @@
#ifndef __H5_ERRORHANDLING_H
#define __H5_ERRORHANDLING_H
#include <stdarg.h>
enum h5_rtypes {
e_int = 0,
e_ssize_t,