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 27 of file rdf/parser.h.

Constructor & Destructor Documentation

◆ Parser()

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

default constructor

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

◆ ~Parser()

Syndication::RDF::Parser::~Parser ( )
overridedefault

destructor

Member Function Documentation

◆ accept()

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.

◆ format()

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

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

Returns
"rdf"

Implements Syndication::AbstractParser.

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

◆ parse()

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-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.