Syndication::RDF::Parser
#include <parser.h>
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.
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()
|
overridedefault |
destructor
Member Function Documentation
◆ accept()
|
overridevirtual |
returns whether the passed document looks like an RSS 0.9 or RSS 1.0 document.
- Parameters
-
source the document source to check
Implements Syndication::AbstractParser.
Definition at line 43 of file rdf/parser.cpp.
◆ format()
|
overridevirtual |
format string of this parser, which is "rdf"
.
- Returns
"rdf"
Implements Syndication::AbstractParser.
Definition at line 205 of file rdf/parser.cpp.
◆ parse()
|
overridevirtual |
Parses an RSS 0.9/1.0 document from a feed source.
RSS 0.9 documents are converted to RSS 1.0.
- Parameters
-
source The 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:
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.