| FEAT 3
    Finite Element Analysis Toolbox | 
Dump XML markup parser class. More...
#include <xml_scanner.hpp>
 
  
| Public Member Functions | |
| DumpParser (const String &name, bool lines=true, std::size_t indent=0) | |
| virtual bool | attribs (std::map< String, bool > &) const override | 
| Specifies the mandatory and optional attributes.  More... | |
| virtual void | close (int iline, const String &) override | 
| Closes this markup parser node.  More... | |
| virtual bool | content (int iline, const String &sline) override | 
| Called to process a content line.  More... | |
| virtual void | create (int iline, const String &, const String &, const std::map< String, String > &attrs, bool closed) override | 
| Creates this markup parser node.  More... | |
| virtual std::shared_ptr< MarkupParser > | markup (int, const String &, const String &name) override | 
| Called to process a child markup node.  More... | |
| Protected Attributes | |
| std::size_t | _indent | 
| indentation for this parser node  More... | |
| bool | _lines | 
| specifies whether to write line numbers  More... | |
| String | _name | 
| the name of this markup parser node  More... | |
Dump XML markup parser class.
This class implements the MarkupParser interface and simply 'dumps' the parsed XML data to std::cout. This class may be somewhat useful for debugging purposes.
Definition at line 279 of file xml_scanner.hpp.
| 
 | explicit | 
Definition at line 46 of file xml_scanner.cpp.
| 
 | overridevirtual | 
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. Implements FEAT::Xml::MarkupParser.
Definition at line 51 of file xml_scanner.cpp.
| 
 | overridevirtual | 
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. | 
Implements FEAT::Xml::MarkupParser.
Definition at line 68 of file xml_scanner.cpp.
| 
 | overridevirtual | 
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. Implements FEAT::Xml::MarkupParser.
Definition at line 80 of file xml_scanner.cpp.
| 
 | overridevirtual | 
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. | 
Implements FEAT::Xml::MarkupParser.
Definition at line 56 of file xml_scanner.cpp.
| 
 | overridevirtual | 
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. Implements FEAT::Xml::MarkupParser.
Definition at line 75 of file xml_scanner.cpp.
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
the name of this markup parser node
Definition at line 284 of file xml_scanner.hpp.
Referenced by close().