OpendTect  7.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
HDF5::WriterImpl Class Reference
Inheritance diagram for HDF5::WriterImpl:
[legend]

Public Member Functions

 WriterImpl ()
 
virtual ~WriterImpl ()
 
- Public Member Functions inherited from HDF5::Writer
uiRetVal createDataSet (const DataSetKey &, const ArrayNDInfo &, ODDataType)
 
uiRetVal createDataSet (const DataSetKey &, int, ODDataType)
 
uiRetVal createDataSetIfMissing (const DataSetKey &, ODDataType, const ArrayNDInfo &addedsz, const ArrayNDInfo &changedir, PtrMan< ArrayNDInfo > *existsinfo=nullptr)
 
uiRetVal createDataSetIfMissing (const DataSetKey &, ODDataType, int addedsz, int changedir=1, int *existsnrsamples=nullptr)
 
uiRetVal createTextDataSet (const DataSetKey &)
 
bool deleteObject (const DataSetKey &)
 
bool isReader () const override
 
uiRetVal open4Edit (const char *)
 For normal 'create', use 'open() More...
 
uiRetVal put (const DataSetKey &, const BufferStringSet &)
 
template<class T >
uiRetVal put (const DataSetKey &, const T *, int sz)
 
template<class T >
uiRetVal put (const DataSetKey &, const TypeSet< T > &)
 
uiRetVal putAll (const DataSetKey &, const void *)
 
uiRetVal putSlab (const DataSetKey &, const SlabSpec &, const void *)
 
uiRetVal removeAllAttributes (const DataSetKey *=nullptr)
 
uiRetVal removeAttribute (const char *, const DataSetKey *=nullptr)
 
uiRetVal renameObject (const DataSetKey &oldky, const DataSetKey &newky)
 
uiRetVal resizeDataSet (const DataSetKey &, const ArrayNDInfo &)
 You cannot change the 'rank', just the dim sizes. More...
 
uiRetVal set (const IOPar &, const DataSetKey *=nullptr)
 
- Public Member Functions inherited from HDF5::Access
virtual ~Access ()
 
H5::H5File * getHDF5File ()
 
bool hasDataSet (const DataSetKey &) const
 
bool hasGroup (const char *grpnm) const
 
bool isOpen () const
 
uiRetVal open (const char *)
 
uiString sCantSetScope (const DataSetKey &) const
 
- Public Member Functions inherited from HDF5::AccessImpl
 AccessImpl (ReaderImpl &)
 
 AccessImpl (WriterImpl &)
 
virtual ~AccessImpl ()
 

Static Public Member Functions

static void renObjImpl (const H5::H5Object &, const char *from, const char *to, uiRetVal &)
 
- Static Public Member Functions inherited from HDF5::Access
static bool isEnabled (const char *fortype=0)
 
static bool isEnvBlocked (const char *fortype=0)
 
static bool isHDF5File (const char *)
 
static uiString sCannotReadDataSet (const DataSetKey &)
 
static uiString sDataSetNotFound (const DataSetKey &)
 
static const char * sFileExtension ()
 
static uiString sHDF5FileNoLongerAccessibe ()
 
static uiString sHDF5NotAvailable ()
 
static uiString sHDF5NotAvailable (const char *fnm)
 
static uiString sHDF5PackageDispName ()
 
static uiString sNotHDF5File (const char *)
 
static const char * sSettingsEnabKey ()
 
- Static Public Member Functions inherited from HDF5::AccessImpl
static void setErrPrint (bool)
 user switch on/off More...
 

Private Member Functions

void closeFile () override
 
H5::DataSet * crDS (const DataSetKey &, const ArrayNDInfo &, ODDataType, uiRetVal &) override
 
ReadercreateCoupledReader () const override
 
H5::DataSet * crTxtDS (const DataSetKey &, uiRetVal &) override
 
od_int64 curGroupID () const override
 
H5::Group * ensureGroup (const char *, uiRetVal &) override
 Creates a new group if necessary. More...
 
const char * fileName () const override
 
H5::DataSet * getDSScope (const DataSetKey &dsky) const override
 Returns (new) scope. null for root scope. More...
 
H5::Group * getGrpScope (const DataSetKey *dsky) const override
 
H5::H5Object * getScope (const DataSetKey *dsky) const override
 
void openFile (const char *, uiRetVal &, bool) override
 
void ptAll (const void *, H5::DataSet &, uiRetVal &) override
 
void ptInfo (const IOPar &, H5::H5Object &, uiRetVal &) override
 
void ptSlab (const SlabSpec &, const void *, H5::DataSet &, uiRetVal &) override
 
void ptStrings (const BufferStringSet &, H5::Group &, H5::DataSet *, const char *dsnm, uiRetVal &) override
 
void reSzDS (const ArrayNDInfo &, H5::DataSet &, uiRetVal &) override
 
void rmAllAttribs (H5::H5Object &) override
 
void rmAttrib (const char *, H5::H5Object &) override
 
bool rmObj (const DataSetKey &) override
 
DataSetKey scope () const override
 
void setAttribute (const char *, double, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, float, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, od_int16, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, od_int32, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, od_int64, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, od_uint16, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, od_uint32, const DataSetKey *=nullptr) override
 
void setAttribute (const char *, od_uint64, const DataSetKey *=nullptr) override
 
void setAttribute (const char *ky, const char *val, const DataSetKey *=nullptr) override
 
void setAttribute (const char *ky, const char *val, H5::H5Object &)
 
void setCompressionLevel (unsigned lvl) override
 
H5::DataSet * setDSScope (const DataSetKey &dsky) override
 
H5::Group * setGrpScope (const DataSetKey *dsky) override
 
H5::H5Object * setScope (const DataSetKey *dsky) override
 

Private Attributes

unsigned compressionlvl_ = 1
 

Additional Inherited Members

- Public Attributes inherited from HDF5::Access
 mTypeDefArrNDTypes
 
- Protected Types inherited from HDF5::AccessImpl
typedef H5::PredType H5DataType
 
- Protected Member Functions inherited from HDF5::Access
 Access ()
 
- Protected Member Functions inherited from HDF5::AccessImpl
bool atDataSet (const char *) const
 
bool atGroup (const char *&) const
 
void doCloseFile (Access &)
 
const char * gtFileName () const
 
od_int64 gtGroupID () const
 
DataSetKey gtScope () const
 
bool haveDataSet () const
 
bool haveGroup () const
 
H5::DataSet * selectDataSet (const char *) const
 
H5::Group * selectGroup (const char *) const
 
void selectSlab (H5::DataSpace &, const SlabSpec &, TypeSet< hsize_t > *pcounts=0) const
 can throw, use in try block More...
 
H5::DataSet * stDSScope (const DataSetKey &)
 
H5::DataSet * stDSScope (const DataSetKey &) const
 
H5::Group * stGrpScope (const DataSetKey *)
 
H5::Group * stGrpScope (const DataSetKey *) const
 
H5::H5Object * stScope (const DataSetKey *)
 
H5::H5Object * stScope (const DataSetKey *) const
 
- Static Protected Member Functions inherited from HDF5::Access
static uiString sFileNotOpen ()
 
static uiString sHDF5Err (const uiString &)
 
static const char * sNeedScope ()
 
static const char * sNoDataPassed ()
 
static const char * sOpenFileFirst ()
 
- Static Protected Member Functions inherited from HDF5::AccessImpl
static const H5DataTypeh5DataTypeFor (ODDataType)
 
static bool haveErrPrint ()
 
- Protected Attributes inherited from HDF5::Access
H5::H5File * file_
 
bool myfile_
 
- Protected Attributes inherited from HDF5::AccessImpl
Accessacc_
 
H5::DataSet dataset_
 
H5::Group group_
 
ArrayNDInfo::nr_dims_type nrdims_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ WriterImpl()

HDF5::WriterImpl::WriterImpl ( )

◆ ~WriterImpl()

virtual HDF5::WriterImpl::~WriterImpl ( )
virtual

Member Function Documentation

◆ closeFile()

void HDF5::WriterImpl::closeFile ( )
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ crDS()

H5::DataSet* HDF5::WriterImpl::crDS ( const DataSetKey ,
const ArrayNDInfo ,
ODDataType  ,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ createCoupledReader()

Reader* HDF5::WriterImpl::createCoupledReader ( ) const
overrideprivatevirtual

Implements HDF5::Writer.

◆ crTxtDS()

H5::DataSet* HDF5::WriterImpl::crTxtDS ( const DataSetKey ,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ curGroupID()

od_int64 HDF5::WriterImpl::curGroupID ( ) const
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ ensureGroup()

H5::Group* HDF5::WriterImpl::ensureGroup ( const char *  grpnm,
uiRetVal  
)
overrideprivatevirtual

Creates a new group if necessary.

Implements HDF5::Writer.

◆ fileName()

const char* HDF5::WriterImpl::fileName ( ) const
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ getDSScope()

H5::DataSet* HDF5::WriterImpl::getDSScope ( const DataSetKey ) const
inlineoverrideprivatevirtual

Returns (new) scope. null for root scope.

Implements HDF5::Access.

◆ getGrpScope()

H5::Group* HDF5::WriterImpl::getGrpScope ( const DataSetKey dsky) const
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ getScope()

H5::H5Object* HDF5::WriterImpl::getScope ( const DataSetKey dsky) const
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ openFile()

void HDF5::WriterImpl::openFile ( const char *  ,
uiRetVal ,
bool   
)
overrideprivatevirtual

Implements HDF5::Access.

◆ ptAll()

void HDF5::WriterImpl::ptAll ( const void *  ,
H5::DataSet &  ,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ ptInfo()

void HDF5::WriterImpl::ptInfo ( const IOPar ,
H5::H5Object &  ,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ ptSlab()

void HDF5::WriterImpl::ptSlab ( const SlabSpec ,
const void *  ,
H5::DataSet &  ,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ ptStrings()

void HDF5::WriterImpl::ptStrings ( const BufferStringSet ,
H5::Group &  ,
H5::DataSet *  ,
const char *  dsnm,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ renObjImpl()

static void HDF5::WriterImpl::renObjImpl ( const H5::H5Object &  ,
const char *  from,
const char *  to,
uiRetVal  
)
static

◆ reSzDS()

void HDF5::WriterImpl::reSzDS ( const ArrayNDInfo ,
H5::DataSet &  ,
uiRetVal  
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ rmAllAttribs()

void HDF5::WriterImpl::rmAllAttribs ( H5::H5Object &  )
overrideprivatevirtual

Implements HDF5::Writer.

◆ rmAttrib()

void HDF5::WriterImpl::rmAttrib ( const char *  ,
H5::H5Object &   
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ rmObj()

bool HDF5::WriterImpl::rmObj ( const DataSetKey )
overrideprivatevirtual

Implements HDF5::Writer.

◆ scope()

DataSetKey HDF5::WriterImpl::scope ( ) const
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ setAttribute() [1/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
double  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [2/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
float  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [3/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
od_int16  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [4/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
od_int32  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [5/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
od_int64  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [6/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
od_uint16  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [7/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
od_uint32  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [8/10]

void HDF5::WriterImpl::setAttribute ( const char *  ,
od_uint64  ,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [9/10]

void HDF5::WriterImpl::setAttribute ( const char *  ky,
const char *  val,
const DataSetKey = nullptr 
)
overrideprivatevirtual

Implements HDF5::Writer.

◆ setAttribute() [10/10]

void HDF5::WriterImpl::setAttribute ( const char *  ky,
const char *  val,
H5::H5Object &   
)
private

◆ setCompressionLevel()

void HDF5::WriterImpl::setCompressionLevel ( unsigned  )
inlineoverrideprivatevirtual

Compression level (0-9) See gzip documentation. 0=None

Reimplemented from HDF5::Writer.

◆ setDSScope()

H5::DataSet* HDF5::WriterImpl::setDSScope ( const DataSetKey dsky)
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ setGrpScope()

H5::Group* HDF5::WriterImpl::setGrpScope ( const DataSetKey dsky)
inlineoverrideprivatevirtual

Implements HDF5::Access.

◆ setScope()

H5::H5Object* HDF5::WriterImpl::setScope ( const DataSetKey dsky)
inlineoverrideprivatevirtual

Implements HDF5::Access.

Member Data Documentation

◆ compressionlvl_

unsigned HDF5::WriterImpl::compressionlvl_ = 1
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024