Syndication

nodevisitor.cpp
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
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
16namespace Syndication
17{
18namespace RDF
19{
23
24void NodeVisitor::visit(NodePtr node)
25{
26 node->accept(this, node);
27}
28
30{
31 return false;
32}
33
35{
36 return false;
37}
38
40{
41 return false;
42}
43
45{
46 return false;
47}
48
50{
51 return false;
52}
53} // namespace RDF
54} // namespace Syndication
virtual bool visitProperty(PropertyPtr property)
reimplement this method to handle properties.
virtual bool visitSequence(SequencePtr seq)
reimplement this method to handle sequences.
virtual bool visitNode(NodePtr node)
reimplement this method to handle nodes that weren't handled by the more specific method.
virtual bool visitLiteral(LiteralPtr)
reimplement this method to handle literals.
virtual void visit(NodePtr node)
call this method to handle a node.
virtual bool visitResource(ResourcePtr resource)
reimplement this method to handle resources.
virtual ~NodeVisitor()
destructor
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.