// userAttrOpWrpr simply interfaces between the user's function and the // C library function H5Aiterate2; used to resolve the different prototype // problem. May be moved to Iterator later. extern "C" herr_t userAttrOpWrpr(hid_t loc_id, const char *attr_name, const H5A_info_t *ainfo, void *op_data) { H5std_string s_attr_name = H5std_string(attr_name); UserData4Aiterate* myData = reinterpret_cast<UserData4Aiterate *> (op_data); myData->op(*myData->location, s_attr_name, myData->opData); return 0; }
// userAttrOpWrpr simply interfaces between the user's function and the // C library function H5Aiterate2; used to resolve the different prototype // problem. May be moved to Iterator later. extern "C" herr_t userAttrOpWrpr(hid_t loc_id, const char *attr_name, const H5A_info_t *ainfo, void *op_data) { H5std_string s_attr_name = H5std_string( attr_name ); #ifdef NO_STATIC_CAST UserData4Aiterate* myData = (UserData4Aiterate *) op_data; #else UserData4Aiterate* myData = static_cast <UserData4Aiterate *> (op_data); #endif myData->op( *myData->object, s_attr_name, myData->opData ); return 0; }