Nektar++
Public Member Functions | Protected Member Functions | List of all members
Nektar::LibUtilities::TagWriter Class Referenceabstract

Base class for writing hierarchical data (XML or HDF5). More...

#include <FieldIO.h>

Inheritance diagram for Nektar::LibUtilities::TagWriter:
[legend]

Public Member Functions

std::shared_ptr< TagWriterAddChild (const std::string &name)
 Create a child node. More...
 
void SetAttr (const std::string &key, const std::string &val)
 Set an attribute on the node. More...
 

Protected Member Functions

virtual ~TagWriter ()
 
virtual std::shared_ptr< TagWriterv_AddChild (const std::string &name)=0
 
virtual void v_SetAttr (const std::string &key, const std::string &val)=0
 

Detailed Description

Base class for writing hierarchical data (XML or HDF5).

Definition at line 56 of file FieldIO.h.

Constructor & Destructor Documentation

◆ ~TagWriter()

virtual Nektar::LibUtilities::TagWriter::~TagWriter ( )
inlineprotectedvirtual

Definition at line 71 of file FieldIO.h.

72 {
73 }

Member Function Documentation

◆ AddChild()

std::shared_ptr< TagWriter > Nektar::LibUtilities::TagWriter::AddChild ( const std::string &  name)
inline

Create a child node.

Definition at line 60 of file FieldIO.h.

61 {
62 return v_AddChild(name);
63 }
virtual std::shared_ptr< TagWriter > v_AddChild(const std::string &name)=0

References CellMLToNektar.pycml::name, and v_AddChild().

◆ SetAttr()

void Nektar::LibUtilities::TagWriter::SetAttr ( const std::string &  key,
const std::string &  val 
)
inline

Set an attribute on the node.

Definition at line 65 of file FieldIO.h.

66 {
67 v_SetAttr(key, val);
68 }
virtual void v_SetAttr(const std::string &key, const std::string &val)=0

References v_SetAttr().

◆ v_AddChild()

virtual std::shared_ptr< TagWriter > Nektar::LibUtilities::TagWriter::v_AddChild ( const std::string &  name)
protectedpure virtual

◆ v_SetAttr()

virtual void Nektar::LibUtilities::TagWriter::v_SetAttr ( const std::string &  key,
const std::string &  val 
)
protectedpure virtual