MCPcopy Create free account
hub / github.com/atomic14/diy-esp32-epub-reader / MyVisitor

Class MyVisitor

test/tinyxml_html_parser.cpp:8–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <unistd.h>
7
8class MyVisitor : public tinyxml2::XMLVisitor
9{
10public:
11 virtual bool VisitEnter(const tinyxml2::XMLElement &element, const tinyxml2::XMLAttribute *firstAttribute)
12 {
13 // printf("**** Entering element %s\n", element.Name());
14 return true;
15 }
16 /// Visit a text node.
17 virtual bool Visit(const tinyxml2::XMLText &text)
18 {
19 // printf("+++ Text\n");
20 // printf("%s\n", text.Value());
21 // printf("--- Text\n");
22 return true;
23 }
24 virtual bool VisitExit(const tinyxml2::XMLElement &element)
25 {
26 // printf("**** Exiting element %s\n", element.Name());
27 return true;
28 }
29};
30
31void test_xml_parser(void)
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected