diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-03-31 00:48:46 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-03-31 00:48:46 (GMT) |
commit | 963bace0d15244768f28d549289e5e383ca9e421 (patch) | |
tree | 9d599884a8ce69cbfc1ac9b2e3663d76d2192896 /c++/src/H5DxferProp.h | |
parent | 63c5964bb4112349dc006099159d02c3278c49f0 (diff) | |
download | hdf5-963bace0d15244768f28d549289e5e383ca9e421.zip hdf5-963bace0d15244768f28d549289e5e383ca9e421.tar.gz hdf5-963bace0d15244768f28d549289e5e383ca9e421.tar.bz2 |
[svn-r24928] Purpose: Fix HDFFV-7907
Description:
Added transform property list functions
// Constructor creates a dataset transform property list.
DSetMemXferPropList(const char* expression);
// Sets data transform expression.
void setDataTransform(const char* expression) const;
void setDataTransform(const H5std_string& expression) const;
// Gets data transform expression.
ssize_t getDataTransform(char* exp, size_t buf_size=0) const;
H5std_string getDataTransform() const;
Added test file tdspl.cpp.
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5DxferProp.h')
-rw-r--r-- | c++/src/H5DxferProp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/c++/src/H5DxferProp.h b/c++/src/H5DxferProp.h index 846082d..655f975 100644 --- a/c++/src/H5DxferProp.h +++ b/c++/src/H5DxferProp.h @@ -35,6 +35,9 @@ class H5_DLLCPP DSetMemXferPropList : public PropList { // Creates a dataset memory and transfer property list. DSetMemXferPropList(); + // Creates a dataset transform property list. + DSetMemXferPropList(const char* expression); + // Sets type conversion and background buffers. void setBuffer( size_t size, void* tconv, void* bkg ) const; @@ -47,6 +50,16 @@ class H5_DLLCPP DSetMemXferPropList : public PropList { // Gets B-tree split ratios for a dataset transfer property list. void getBtreeRatios( double& left, double& middle, double& right ) const; + // Sets data transform expression. + void setDataTransform(const char* expression) const; + void setDataTransform(const H5std_string& expression) const; + + // Gets data transform expression. + ssize_t getDataTransform(char* exp, size_t buf_size=0) const; + H5std_string getDataTransform() const; + //H5std_string getDataTransform(const size_t buf_size=0) const; + // this will collide with the first one when exp=NULL + // Sets the dataset transfer property list status to TRUE or FALSE. void setPreserve( bool status ) const; |