Syndication

nodevisitor.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "nodevisitor.h"
9 
10 #include "literal.h"
11 #include "node.h"
12 #include "property.h"
13 #include "resource.h"
14 #include "sequence.h"
15 
16 namespace Syndication
17 {
18 namespace RDF
19 {
21 {
22 }
23 
24 void NodeVisitor::visit(NodePtr node)
25 {
26  node->accept(this, node);
27 }
28 
29 bool NodeVisitor::visitLiteral(LiteralPtr)
30 {
31  return false;
32 }
33 
35 {
36  return false;
37 }
38 
40 {
41  return false;
42 }
43 
45 {
46  return false;
47 }
48 
49 bool NodeVisitor::visitSequence(SequencePtr)
50 {
51  return false;
52 }
53 } // namespace RDF
54 } // namespace Syndication
virtual bool visitSequence(SequencePtr seq)
reimplement this method to handle sequences.
Definition: nodevisitor.cpp:49
virtual bool visitResource(ResourcePtr resource)
reimplement this method to handle resources.
Definition: nodevisitor.cpp:44
virtual ~NodeVisitor()
destructor
Definition: nodevisitor.cpp:20
virtual void visit(NodePtr node)
call this method to handle a node.
Definition: nodevisitor.cpp:24
virtual bool visitProperty(PropertyPtr property)
reimplement this method to handle properties.
Definition: nodevisitor.cpp:39
virtual bool visitLiteral(LiteralPtr)
reimplement this method to handle literals.
Definition: nodevisitor.cpp:29
virtual bool visitNode(NodePtr node)
reimplement this method to handle nodes that weren't handled by the more specific method.
Definition: nodevisitor.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.