Syndication::RDF::Parser

Search for usage in LXR

Syndication::RDF::Parser Class Reference

#include <parser.h>

Inheritance diagram for Syndication::RDF::Parser:

Public Member Functions

 Parser ()
 
 ~Parser () override
 
bool accept (const DocumentSource &source) const override
 
QString format () const override
 
SpecificDocumentPtr parse (const DocumentSource &source) const override
 
- Public Member Functions inherited from Syndication::AbstractParser
virtual ~AbstractParser ()
 

Detailed Description

Parser implementation for RDF-based RSS 0.9 and RSS 1.0 feeds.

Author
Frank Osterfeld

Definition at line 25 of file rdf/parser.h.

Constructor & Destructor Documentation

Syndication::RDF::Parser::Parser ( )

default constructor

Definition at line 190 of file rdf/parser.cpp.

Syndication::RDF::Parser::~Parser ( )
override

destructor

Definition at line 197 of file rdf/parser.cpp.

Member Function Documentation

bool Syndication::RDF::Parser::accept ( const DocumentSource source) const
overridevirtual

returns whether the passed document looks like an RSS 0.9 or RSS 1.0 document.

Parameters
sourcethe document source to check

Implements Syndication::AbstractParser.

Definition at line 43 of file rdf/parser.cpp.

QString Syndication::RDF::Parser::format ( ) const
overridevirtual

format string of this parser, which is "rdf".

Returns
"rdf"

Implements Syndication::AbstractParser.

Definition at line 212 of file rdf/parser.cpp.

SpecificDocumentPtr Syndication::RDF::Parser::parse ( const DocumentSource source) const
overridevirtual

Parses an RSS 0.9/1.0 document from a feed source.

RSS 0.9 documents are converted to RSS 1.0.

Parameters
sourceThe document source to parse
Returns
parsed document (a Syndication::RDF::Document), or an invalid document if parsing failed.
See also
Document::isValid()

Implements Syndication::AbstractParser.

Definition at line 59 of file rdf/parser.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 22:54:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.