Syndication::SpecificItem Class Referenceabstract

#include <specificitem.h>

Inheritance diagram for Syndication::SpecificItem:

Public Member Functions

virtual ~SpecificItem ()
virtual bool accept (SpecificItemVisitor *visitor)=0

Detailed Description

Interface for all format-specific item-like classes, such as RSS2/RDF items, and Atom entries.

To process items based on their format, use a SpecificItemVisitor.

Frank Osterfeld

Definition at line 46 of file specificitem.h.

Constructor & Destructor Documentation

Syndication::SpecificItem::~SpecificItem ( )

virtual dtor

Definition at line 28 of file specificitem.cpp.

Member Function Documentation

virtual bool Syndication::SpecificItem::accept ( SpecificItemVisitor visitor)
pure virtual

This must be implemented for the double dispatch technique (Visitor pattern).

The usual implementation is

return visitor->visit(this);

See also SpecificItemVisitor.

visitorthe visitor "visiting" this object

Implemented in Syndication::RDF::Item, and Syndication::Atom::Entry.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:01:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.