12 #ifndef MESH_LINK_PARSER_XERCES 13 #define MESH_LINK_PARSER_XERCES 28 class MeshLinkWriterXerces;
55 xercesc_3_2::DOMElement *domElement);
76 bool validate(
const std::string &fileName,
const std::string &schemaName)
override;
95 std::string &schemaLocation)
override 145 xercesc_3_2::DOMElement *meshPoint);
149 xercesc_3_2::DOMElement *meshPoint);
154 MeshTopo * meshTopo, xercesc_3_2::DOMElement *element);
158 MeshTopo * meshTopo, xercesc_3_2::DOMElement *element);
162 MeshTopo * meshTopo, xercesc_3_2::DOMElement *element);
166 MeshTopo * meshTopo, xercesc_3_2::DOMElement *element);
173 xercesc_3_2::DOMElement *xmlObj,
std::map< const char *, pParseMeshObj > ParseMeshObjMap
A MeshLink data parser using Apache Xerces XML library.
bool parseAttributes(xercesc_3_2::DOMElement *root)
Populate the MeshLinkAttribute objects.
bool parseGeometryRefs(xercesc_3_2::DOMElement *root)
Populate the GeometryGroup objects.
bool validate(const std::string &fileName, const std::string &schemaName) override
Validate XML file against MeshLink schema using the Xerces parser.
bool parseMeshStringReference(MeshModel *model, xercesc_3_2::DOMElement *meshStringNode)
Create a MeshString from reference data in the given model from the Xerces DOM model.
bool parsePeriodicInfo(xercesc_3_2::DOMElement *root)
Populate the Transform and MeshElementLinkage objects.
Storage for mesh topology and geometry associativity data.
void setVerboseLevel(int level)
Set the verbosity of the parser message output.
bool parseMeshLinkFile(std::string fname, MeshAssociativity *meshAssociativity) override
Parse a MeshLink XML file and populate a MeshAssociativity using the Xerces XML parser.
bool parseMeshRefModel(MeshFile &meshFile, xercesc_3_2::DOMElement *modelRef)
Create a MeshModel from the Xerces DOM model.
3D (volume) mesh topology
bool getMeshLinkAttributes(std::string &xmlns, std::string &xmlns_xsi, std::string &schemaLocation) override
Obtain the MeshLink XML file properties after reading.
std::string xmlns_
The XML Namespace string read from the input file.
bool parseMeshFile(xercesc_3_2::DOMElement *element)
Read the MeshLink XML into a Xerces DOM model.
std::string xmlns_xsi_
The XML XSI Namespace string read from the input file.
std::string xmlVersion_
The XML version string read from the input file.
Storage for MeshLink schema MeshFile data.
bool parseMeshPointReference(MeshModel *model, xercesc_3_2::DOMElement *meshPoint)
Create a MeshPoint from reference data in the given model from the Xerces DOM model.
bool parseMeshEdge(MeshModel *model, MeshTopo *meshTopo, xercesc_3_2::DOMElement *element)
Create a MeshEdge in the given model and parent MeshTopo entity from the Xerces DOM model.
bool parseMeshEdgeReference(MeshModel *model, MeshTopo *meshTopo, xercesc_3_2::DOMElement *element)
Create a MeshEdge from reference data in the given model and parent MeshTopo entity from the Xerces D...
MeshLinkWriterXerces * getXMLWriter()
Return a new MeshLinkWriter object using the Xerces API.
bool parseMeshFace(MeshModel *model, MeshTopo *meshTopo, xercesc_3_2::DOMElement *element)
Create a MeshFace in the given model and parent MeshTopo entity from the Xerces DOM model.
bool parseParamVertex(MeshTopo *meshTopo, xercesc_3_2::DOMElement *element)
Create a ParamVertex for the given MeshTopo entity from the Xerces DOM model.
bool parseMeshSheetReference(MeshModel *model, xercesc_3_2::DOMElement *meshSheetNode)
Create a MeshSheet from reference data in the given model from the Xerces DOM model.
MeshAssociativity * meshAssociativity_
the MeshAssociativity object to be populated
bool parseMeshPoint(MeshModel *model, xercesc_3_2::DOMElement *meshPoint)
Create a MeshPoint in the given model from the Xerces DOM model.
bool parseMeshObject(MeshModel *model, MeshTopo *meshTopo, xercesc_3_2::DOMElement *xmlObj, const char *objName, ParseMeshObjMap &parseMeshObjMap, bool &mapID)
Create MeshTopo object in the given MeshModel from the Xerces DOM model. The type of object to create...
bool parseMeshString(MeshModel *model, xercesc_3_2::DOMElement *meshStringNode)
Create a MeshString from reference data in the given model from the Xerces DOM model.
Base class for MeshLink data parser interface.
std::string schemaLocation_
The XSD file name read from the input file.
bool parseMeshFaceReference(MeshModel *model, MeshTopo *meshTopo, xercesc_3_2::DOMElement *element)
Create a MeshFace from reference data in the given model and parent MeshTopo entity from the Xerces D...
bool parseMeshSheet(MeshModel *model, xercesc_3_2::DOMElement *meshSheetNode)
Create a MeshSheet in the given model from the Xerces DOM model.
~MeshLinkParserXerces()
Destructor.
Base class for mesh topology entities.
Parametric geometry data.
bool(MeshLinkParserXerces::* pParseMeshObj)(MeshModel *model, MeshTopo *meshTopo, xercesc_3_2::DOMElement *domElement)
MeshLinkParserXerces()
Default constructor.