Nektar++
|
#include <FieldIOXml.h>
Public Member Functions | |
XmlDataSource (TiXmlDocument &doc) | |
Default constructor. More... | |
XmlDataSource (const std::string &fn) | |
Constructor based on filename. More... | |
~XmlDataSource () | |
Destructor cleans up memory usage. More... | |
TiXmlDocument & | Get () |
Return the TinyXML document of this source. More... | |
const TiXmlDocument & | Get () const |
Return the TinyXML document of this source. More... | |
Static Public Member Functions | |
static DataSourceSharedPtr | create (const std::string &fn) |
Create a new XML data source based on the filename. More... | |
static DataSourceSharedPtr | create (TiXmlDocument &fn) |
Create a new XML data source based on a TiXmlDocument. More... | |
Private Attributes | |
TiXmlDocument * | m_doc |
Internal TinyXML document storage. More... | |
bool | m_needsFree |
Boolean dictating whether document needs to be freed or not. More... | |
Definition at line 50 of file FieldIOXml.h.
|
inline |
Default constructor.
Definition at line 54 of file FieldIOXml.h.
Referenced by create().
|
inline |
Constructor based on filename.
Definition at line 57 of file FieldIOXml.h.
References ASSERTL0, and m_doc.
|
inline |
Destructor cleans up memory usage.
Definition at line 70 of file FieldIOXml.h.
References m_doc, and m_needsFree.
|
inlinestatic |
Create a new XML data source based on the filename.
Definition at line 91 of file FieldIOXml.h.
References XmlDataSource().
Referenced by Nektar::SpatialDomains::MeshGraph::ReadExpansions(), Nektar::LibUtilities::FieldIOXml::v_Import(), and Nektar::LibUtilities::FieldIOXml::v_ImportFieldMetaData().
|
inlinestatic |
Create a new XML data source based on a TiXmlDocument.
Definition at line 97 of file FieldIOXml.h.
References XmlDataSource().
|
inline |
Return the TinyXML document of this source.
Definition at line 79 of file FieldIOXml.h.
References m_doc.
Referenced by Nektar::LibUtilities::FieldIOXml::ImportFieldData(), Nektar::LibUtilities::FieldIOXml::ImportFieldDefs(), and Nektar::LibUtilities::FieldIOXml::v_ImportFieldMetaData().
|
inline |
Return the TinyXML document of this source.
Definition at line 85 of file FieldIOXml.h.
References m_doc.
|
private |
Internal TinyXML document storage.
Definition at line 104 of file FieldIOXml.h.
Referenced by Get(), XmlDataSource(), and ~XmlDataSource().
|
private |
Boolean dictating whether document needs to be freed or not.
Definition at line 106 of file FieldIOXml.h.
Referenced by ~XmlDataSource().