Syndication::SpecificItem

Search for usage in LXR

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.

Author
Frank Osterfeld

Definition at line 31 of file specificitem.h.

Constructor & Destructor Documentation

◆ ~SpecificItem()

Syndication::SpecificItem::~SpecificItem ( )
virtual

virtual dtor

Definition at line 12 of file specificitem.cpp.

Member Function Documentation

◆ accept()

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.

Parameters
visitorthe visitor "visiting" this object

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


The documentation for this class was generated from the following files:
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.