HDF5WriterBase

class HDF5WriterBase

HDF5 file writer base class. This is not to be used directly. Instead, it should be subclassed to provide specific data writing functions. This class provides most basic properties like filename, file opening mode, file open status.

setFilename()

(destination message field) Assigns field value.

getFilename()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

getIsOpen()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setMode()

(destination message field) Assigns field value.

getMode()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setChunkSize()

(destination message field) Assigns field value.

getChunkSize()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setCompressor()

(destination message field) Assigns field value.

getCompressor()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setCompression()

(destination message field) Assigns field value.

getCompression()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setStringAttr()

(destination message field) Assigns field value.

getStringAttr()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setDoubleAttr()

(destination message field) Assigns field value.

getDoubleAttr()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setLongAttr()

(destination message field) Assigns field value.

getLongAttr()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setStringVecAttr()

(destination message field) Assigns field value.

getStringVecAttr()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setDoubleVecAttr()

(destination message field) Assigns field value.

getDoubleVecAttr()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

setLongVecAttr()

(destination message field) Assigns field value.

getLongVecAttr()

(destination message field) Requests field value. The requesting Element must provide a handler for the returned value.

flush()

(destination message field) Write all buffer contents to file and clear the buffers.

close()

(destination message field) Close the underlying file. This is a safety measure so that file is not in an invalid state even if a crash happens at exit.

filename

string (value field) Name of the file associated with this HDF5 writer object.

isOpen

bool (value field) True if this object has an open file handle.

mode

unsigned int (value field) Depending on mode, if file already exists, if mode=1, data will be appended to existing file, if mode=2, file will be truncated, if mode=4, no writing will happen.

chunkSize

unsigned int (value field) Chunksize for writing array data. Defaults to 100.

compressor

string (value field) Compression type for array data. zlib and szip are supported. Defaults to zlib.

compression

unsigned int (value field) Compression level for array data. Defaults to 6.

stringAttr

string,string (lookup field) String attributes. The key is attribute name, value is attribute value (string).

doubleAttr

string,double (lookup field) Double precision floating point attributes. The key is attribute name, value is attribute value (double).

longAttr

string,long (lookup field) Long integer attributes. The key is attribute name, value is attribute value (long).

stringVecAttr

string,vector<string> (lookup field) String vector attributes. The key is attribute name, value is attribute value (string).

doubleVecAttr

string,vector<double> (lookup field) Double vector attributes. The key is attribute name, value is attribute value (vector of double).

longVecAttr

string,vector<long> (lookup field) Long integer vector attributes. The key is attribute name, value is attribute value (vector of long).