|
FEAT 3
Finite Element Analysis Toolbox
|
XML Markup Parser interface. More...
#include <xml_scanner.hpp>
Public Member Functions | |
| virtual | ~MarkupParser () |
| virtual destructor More... | |
| virtual bool | attribs (std::map< String, bool > &attrs) const =0 |
| Specifies the mandatory and optional attributes. More... | |
| virtual void | close (int iline, const String &sline)=0 |
| Closes this markup parser node. More... | |
| virtual bool | content (int iline, const String &sline)=0 |
| Called to process a content line. More... | |
| virtual void | create (int iline, const String &sline, const String &name, const std::map< String, String > &attrs, bool closed)=0 |
| Creates this markup parser node. More... | |
| virtual std::shared_ptr< MarkupParser > | markup (int iline, const String &sline, const String &name)=0 |
| Called to process a child markup node. More... | |
XML Markup Parser interface.
This class acts as an interface for all XML markup parsers.
Definition at line 148 of file xml_scanner.hpp.
|
inlinevirtual |
virtual destructor
Definition at line 152 of file xml_scanner.hpp.
|
pure virtual |
Specifies the mandatory and optional attributes.
| [out] | attrs | A transient reference to a map of all supported attribute key names. The second component specifies whether the attribute is mandatory (true) or optional (false). |
true, if the scanner should check for valid arguments, otherwise false. Implemented in FEAT::Geometry::Atlas::BezierPointsParser< Mesh_ >, FEAT::Geometry::Atlas::BezierParamsParser< Mesh_ >, FEAT::Xml::DummyParser, FEAT::Xml::DumpParser, FEAT::Geometry::Atlas::BezierChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::CircleChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::ExtrudeChartParser< Mesh_, true >, and FEAT::Geometry::Atlas::SphereChartParser< Mesh_, ChartReturn_ >.
|
pure virtual |
Closes this markup parser node.
| [in] | iline | The line number of the markup terminator in the XML file. |
| [in] | sline | The line string of the markup in the XML file. |
Implemented in FEAT::Xml::DumpParser, FEAT::Geometry::Atlas::BezierPointsParser< Mesh_ >, FEAT::Geometry::Atlas::BezierParamsParser< Mesh_ >, FEAT::Geometry::Atlas::ExtrudeChartParser< Mesh_, true >, FEAT::Geometry::Atlas::BezierChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::CircleChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::SphereChartParser< Mesh_, ChartReturn_ >, and FEAT::Xml::DummyParser.
|
pure virtual |
Called to process a content line.
This function is called by the XML scanner when a content line inside this markup parser node is detected.
| [in] | iline | The line number of the content line in the XML file. |
| [in] | sline | The line string of the content line in the XML file. |
true, if the content line was parsed successfully, otherwise false.false will cause the scanner to throw a Xml::GammarError. Implemented in FEAT::Geometry::Atlas::BezierPointsParser< Mesh_ >, FEAT::Geometry::Atlas::BezierParamsParser< Mesh_ >, FEAT::Xml::DumpParser, FEAT::Geometry::Atlas::BezierChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::CircleChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::ExtrudeChartParser< Mesh_, true >, FEAT::Geometry::Atlas::SphereChartParser< Mesh_, ChartReturn_ >, and FEAT::Xml::DummyParser.
|
pure virtual |
Creates this markup parser node.
| [in] | iline | The line number of the markup in the XML file. |
| [in] | sline | The line string of the markup in the XML file. |
| [in] | name | The name of the markup. |
| [in] | attrs | A transient reference to a map of all attributes of the markup. |
| [in] | closed | Specifies whether the markup is closed. |
Implemented in FEAT::Xml::DumpParser, FEAT::Geometry::Atlas::BezierPointsParser< Mesh_ >, FEAT::Geometry::Atlas::BezierParamsParser< Mesh_ >, FEAT::Geometry::Atlas::BezierChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::CircleChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::ExtrudeChartParser< Mesh_, true >, FEAT::Geometry::Atlas::SphereChartParser< Mesh_, ChartReturn_ >, and FEAT::Xml::DummyParser.
|
pure virtual |
Called to process a child markup node.
This function is called by the XML scanner when a child markup inside this markup parser node is detected.
| [in] | iline | The line number of the child markup in the XML file. |
| [in] | sline | The line string of the child markup in the XML file. |
| [in] | name | The markup name of the child markup. |
nullptr if a child markup with this name is not supported.nullptr will cause the scanner to throw a Xml::GammarError. Implemented in FEAT::Geometry::Atlas::BezierPointsParser< Mesh_ >, FEAT::Geometry::Atlas::BezierParamsParser< Mesh_ >, FEAT::Geometry::Atlas::CircleChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::SphereChartParser< Mesh_, ChartReturn_ >, FEAT::Xml::DummyParser, FEAT::Geometry::Atlas::BezierChartParser< Mesh_, ChartReturn_ >, FEAT::Geometry::Atlas::ExtrudeChartParser< Mesh_, true >, and FEAT::Xml::DumpParser.