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

#include <FieldIOHdf5.h>

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

Public Member Functions

 H5TagWriter (H5::GroupSharedPtr grp)
 Default constructor. More...
 
TagWriterSharedPtr AddChild (const std::string &name)
 Add a child node. More...
 
void SetAttr (const std::string &key, const std::string &val)
 Set an attribute key/value pair on this tag. More...
 

Private Attributes

H5::GroupSharedPtr m_Group
 HDF5 group for this tag. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Nektar::LibUtilities::TagWriter
virtual ~TagWriter ()
 

Detailed Description

Definition at line 94 of file FieldIOHdf5.h.

Constructor & Destructor Documentation

Nektar::LibUtilities::H5TagWriter::H5TagWriter ( H5::GroupSharedPtr  grp)
inline

Default constructor.

Definition at line 98 of file FieldIOHdf5.h.

Referenced by AddChild().

98 : m_Group(grp) {}
H5::GroupSharedPtr m_Group
HDF5 group for this tag.
Definition: FieldIOHdf5.h:115

Member Function Documentation

TagWriterSharedPtr Nektar::LibUtilities::H5TagWriter::AddChild ( const std::string &  name)
inlinevirtual

Add a child node.

Implements Nektar::LibUtilities::TagWriter.

Definition at line 101 of file FieldIOHdf5.h.

References H5TagWriter(), and m_Group.

102  {
103  H5::GroupSharedPtr child = m_Group->CreateGroup(name);
104  return TagWriterSharedPtr(new H5TagWriter(child));
105  }
H5::GroupSharedPtr m_Group
HDF5 group for this tag.
Definition: FieldIOHdf5.h:115
boost::shared_ptr< Group > GroupSharedPtr
Definition: FieldIOHdf5.h:50
H5TagWriter(H5::GroupSharedPtr grp)
Default constructor.
Definition: FieldIOHdf5.h:98
boost::shared_ptr< TagWriter > TagWriterSharedPtr
Definition: FieldIO.h:71
void Nektar::LibUtilities::H5TagWriter::SetAttr ( const std::string &  key,
const std::string &  val 
)
inlinevirtual

Set an attribute key/value pair on this tag.

Implements Nektar::LibUtilities::TagWriter.

Definition at line 108 of file FieldIOHdf5.h.

References m_Group.

109  {
110  m_Group->SetAttribute(key, val);
111  }
H5::GroupSharedPtr m_Group
HDF5 group for this tag.
Definition: FieldIOHdf5.h:115

Member Data Documentation

H5::GroupSharedPtr Nektar::LibUtilities::H5TagWriter::m_Group
private

HDF5 group for this tag.

Definition at line 115 of file FieldIOHdf5.h.

Referenced by AddChild(), and SetAttr().