Attribute H5Object::createAttribute( const string& name, const DataType& data_type, const DataSpace& data_space, const PropList& create_plist ) const
#include "H5RefCounter.h"
#include "H5IdComponent.h"
#include "H5Idtemplates.h"
#include "H5AbstractDs.h"
extern "C" herr_t userAttrOpWrpr( hid_t loc_id, const char* attr_name, void* op_data )
string s_attr_name = string( attr_name );
UserData4Aiterate* myData = (UserData4Aiterate *) op_data;
UserData4Aiterate* myData = static_cast <UserData4Aiterate *> (op_data);
myData->op( *myData->object, s_attr_name, myData->opData );
H5Object::H5Object() : IdComponent() {}
H5Object::H5Object( const hid_t object_id ) : IdComponent( object_id ) {}
H5Object::H5Object( const H5Object& original ) : IdComponent( original ) {}
Attribute H5Object::createAttribute( const char* name, const DataType& data_type, const DataSpace& data_space, const PropList& create_plist ) const
hid_t type_id = data_type.getId();
hid_t space_id = data_space.getId();
hid_t plist_id = create_plist.getId();
hid_t attr_id = H5Acreate( id, name, type_id, space_id, plist_id );