MeshLink
Computational geometry access
|
Base class for MeshLink data parser interface. More...
#include <MeshLinkParser.h>
Public Member Functions | |
MeshLinkParser () | |
Default constructor. More... | |
~MeshLinkParser () | |
Destructor. More... | |
virtual bool | validate (const std::string &fileName, const std::string &schemaName) |
Validate MeshLink XML file against MeshLink schema. More... | |
virtual bool | parseMeshLinkFile (std::string fname, MeshAssociativity *meshAssociativity) |
Parse MeshLink xml file into MeshAssociativity. More... | |
virtual bool | getMeshLinkAttributes (std::string &xmlns, std::string &xmlns_xsi, std::string &schemaLocation) |
Return schema-related attributes. More... | |
Base class for MeshLink data parser interface.
Provides a neutral interface for parsing MeshLink XML data according to an XML Schema Definition (XSD) using a wrapped parsing library.
Definition at line 32 of file MeshLinkParser.h.
|
inline |
Default constructor.
Definition at line 35 of file MeshLinkParser.h.
|
inline |
Destructor.
Definition at line 37 of file MeshLinkParser.h.
|
inlinevirtual |
Return schema-related attributes.
These attributes are typically used when exporting MeshAssociativity data to a MeshLink XML file.
[out] | xmlns | the XML namespace string |
[out] | xmlns_xsi | the XML Schema Instance string |
[out] | schemaLocation | the XML Schema Definition (XSD) file name |
Reimplemented in MeshLinkParserXerces.
Definition at line 68 of file MeshLinkParser.h.
|
inlinevirtual |
Parse MeshLink xml file into MeshAssociativity.
fname | the name (path) of the MeshLink XML file to parse |
meshAssociativity | the MeshAssociativity object to populate |
Reimplemented in MeshLinkParserXerces.
Definition at line 57 of file MeshLinkParser.h.
|
inlinevirtual |
Validate MeshLink XML file against MeshLink schema.
fileName | the name of the XML file to validate |
schemaName | the name of the schema file used for validation; if empty, the XML file must designate the XML Schema Definition (XSD) file location |
Reimplemented in MeshLinkParserXerces.
Definition at line 47 of file MeshLinkParser.h.