[svn-r12576] Added funtions to query the "current position" for Packet Tables in C and C++.

This commit is contained in:
James Laird
2006-08-14 11:18:28 -05:00
parent 89f36d62b7
commit 0f61afce1c
6 changed files with 83 additions and 5 deletions

View File

@@ -86,6 +86,21 @@
return H5PTset_index(table_id, index);
}
/* SetIndex
* Sets the index to point to the packet specified by index.
* Returns 0 on success, negative on failure (if index is out of bounds)
*/
int PacketTable::GetIndex(int &error)
{
hsize_t index;
error = H5PTget_index(table_id, &index);
if(error < 0)
return 0;
else
return index;
}
/* GetPacketCount
* Returns the number of packets in the packet table. Error
* is set to 0 on success. On failure, returns 0 and