Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Nektar::LibUtilities::H5DataSource Class Reference

#include <FieldIOHdf5.h>

Inheritance diagram for Nektar::LibUtilities::H5DataSource:
Inheritance graph
[legend]
Collaboration diagram for Nektar::LibUtilities::H5DataSource:
Collaboration graph
[legend]

Public Member Functions

 H5DataSource (const std::string &fn, H5::PListSharedPtr parallelProps)
 Constructor based on filename. More...
 
H5::FileSharedPtr Get ()
 Get H5::FileSharedPtr reference to file. More...
 
const H5::FileSharedPtr Get () const
 Get H5::FileSharedPtr reference to file. More...
 

Static Public Member Functions

static DataSourceSharedPtr create (const std::string &fn, H5::PListSharedPtr parallelProps)
 Static constructor for this data source. More...
 

Private Attributes

H5::FileSharedPtr doc
 HDF5 document. More...
 

Detailed Description

Definition at line 57 of file FieldIOHdf5.h.

Constructor & Destructor Documentation

Nektar::LibUtilities::H5DataSource::H5DataSource ( const std::string &  fn,
H5::PListSharedPtr  parallelProps 
)
inline

Constructor based on filename.

Definition at line 61 of file FieldIOHdf5.h.

Referenced by create().

62  : doc(H5::File::Open(fn, H5F_ACC_RDONLY, parallelProps))
63  {
64  }
H5::FileSharedPtr doc
HDF5 document.
Definition: FieldIOHdf5.h:87
static FileSharedPtr Open(const std::string &filename, unsigned mode, PListSharedPtr accessPL=PList::Default())
Definition: H5.cpp:563

Member Function Documentation

static DataSourceSharedPtr Nektar::LibUtilities::H5DataSource::create ( const std::string &  fn,
H5::PListSharedPtr  parallelProps 
)
inlinestatic

Static constructor for this data source.

Definition at line 79 of file FieldIOHdf5.h.

References H5DataSource().

Referenced by Nektar::LibUtilities::FieldIOHdf5::v_Import(), and Nektar::LibUtilities::FieldIOHdf5::v_ImportFieldMetaData().

81  {
82  return DataSourceSharedPtr(new H5DataSource(fn, parallelProps));
83  }
boost::shared_ptr< DataSource > DataSourceSharedPtr
Definition: FieldIO.h:81
H5DataSource(const std::string &fn, H5::PListSharedPtr parallelProps)
Constructor based on filename.
Definition: FieldIOHdf5.h:61
H5::FileSharedPtr Nektar::LibUtilities::H5DataSource::Get ( )
inline

Get H5::FileSharedPtr reference to file.

Definition at line 67 of file FieldIOHdf5.h.

References doc.

Referenced by Nektar::LibUtilities::FieldIOHdf5::ImportHDF5FieldMetaData().

68  {
69  return doc;
70  }
H5::FileSharedPtr doc
HDF5 document.
Definition: FieldIOHdf5.h:87
const H5::FileSharedPtr Nektar::LibUtilities::H5DataSource::Get ( ) const
inline

Get H5::FileSharedPtr reference to file.

Definition at line 73 of file FieldIOHdf5.h.

References doc.

74  {
75  return doc;
76  }
H5::FileSharedPtr doc
HDF5 document.
Definition: FieldIOHdf5.h:87

Member Data Documentation

H5::FileSharedPtr Nektar::LibUtilities::H5DataSource::doc
private