H5FileId identifies an H5 file object. Instances of this class are
returned from H5create and H5open.
Namespace:
HDF5DotNet
Assembly:
HDF5DotNet (in HDF5DotNet.dll)
Syntax
Examples
[C#]
| Copy Code |
---|
try
{
// Create an HDF5 file.
H5FileId fileId = H5F.create("myCSharp.h5",
H5F.CreateMode.ACC_TRUNC);
// Create a HDF5 group.
H5GroupId groupId = H5G.create(fileId, "/cSharpGroup", 0);
H5G.close(groupId);
H5F.close(openId);
}
catch (HDFException e)
{
Console.WriteLine(e.Message);
}
|
[Visual Basic .NET]
Imports HDF5DotNet
| Copy Code |
---|
Module Module1
Sub Main()
Dim FileId As H5FileId
Dim GroupId As H5GroupId
Try
FileId = H5F.create("HDF5_fromVB", H5F.CreateMode.ACC_TRUNC)
GroupId = H5G.create(FileId, "/vbGroup", _
H5F.CreateMode.ACC_TRUNC)
H5G.close(GroupId)
H5F.close(FileId)
Catch ex As HDFException
Console.WriteLine(ex.Message())
End Try
Console.WriteLine("Processing complete!")
Console.ReadLine()
End Sub
End Module
|
[C++/Cli]
try
{
// Create an HDF5 file.
H5FileId^ fileId = H5F::create("myCpp.h5",
H5F::CreateMode::ACC_TRUNC);
// Create a HDF5 group.
H5GroupId^ groupId = H5G::create(fileId, "/cppGroup", 0);
// Close the group.
H5G::close(groupId);
// Close the file
H5F::close(fileId);
}
catch (HDFException^ e)
{
Console::WriteLine(e->Message);
}
| Copy Code |
---|
|
Inheritance Hierarchy
Object
HDF5DotNet..::..H5FileId
See Also