Syndication::SpecificDocument

Search for usage in LXR

Syndication::SpecificDocument Class Referenceabstract

#include <specificdocument.h>

Inheritance diagram for Syndication::SpecificDocument:

Public Member Functions

virtual ~SpecificDocument ()
 
virtual bool accept (DocumentVisitor *visitor)=0
 
virtual QString debugInfo () const =0
 
virtual bool isValid () const =0
 

Detailed Description

Document interface for format-specific feed documents as parsed from a document source (see DocumentSource).

The Document classes from the several syndication formats must implement this interface. It's main purpose is to provide access for document visitors (see DocumentVisitor). Usually it is not necessary to access the format-specific document at all, use Feed for a format-agnostic interface to all feed documents supported by the library.

Author
Frank Osterfeld

Definition at line 38 of file specificdocument.h.

Constructor & Destructor Documentation

◆ ~SpecificDocument()

Syndication::SpecificDocument::~SpecificDocument ( )
virtual

virtual dtor

Definition at line 12 of file specificdocument.cpp.

Member Function Documentation

◆ accept()

virtual bool Syndication::SpecificDocument::accept ( DocumentVisitor * visitor)
pure virtual

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

The usual implementation is

return visitor->visit(this);

See also DocumentVisitor.

Parameters
visitorthe visitor "visiting" this object

Implemented in Syndication::Atom::EntryDocument, Syndication::Atom::FeedDocument, Syndication::RDF::Document, and Syndication::RSS2::Document.

◆ debugInfo()

virtual QString Syndication::SpecificDocument::debugInfo ( ) const
pure virtual

Returns a description of the document for debugging purposes.

Returns
debug string

Implemented in Syndication::Atom::EntryDocument, Syndication::Atom::FeedDocument, Syndication::RDF::Document, and Syndication::RSS2::Document.

◆ isValid()

virtual bool Syndication::SpecificDocument::isValid ( ) const
pure virtual

Returns whether this document is valid or not.

Invalid documents do not contain any useful information.

Implemented in Syndication::Atom::EntryDocument, Syndication::Atom::FeedDocument, Syndication::RDF::Document, and Syndication::RSS2::Document.


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 Fri Dec 6 2024 12:02:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.