Syndication::Atom::Parser
#include <parser.h>
Public Member Functions | |
Parser () | |
~Parser () override | |
bool | accept (const Syndication::DocumentSource &source) const override |
QString | format () const override |
Syndication::SpecificDocumentPtr | parse (const Syndication::DocumentSource &source) const override |
Public Member Functions inherited from Syndication::AbstractParser | |
virtual | ~AbstractParser () |
Detailed Description
parser implementation for Atom 1.0 and 0.3.
Definition at line 31 of file atom/parser.h.
Constructor & Destructor Documentation
◆ Parser()
Syndication::Atom::Parser::Parser | ( | ) |
default constructor
Definition at line 185 of file atom/parser.cpp.
◆ ~Parser()
|
overridedefault |
destructor
Member Function Documentation
◆ accept()
|
overridevirtual |
returns whether the source looks like an Atom 1.0 or 0.3 document, by checking the root element.
- Parameters
-
source document source to check
Implements Syndication::AbstractParser.
Definition at line 36 of file atom/parser.cpp.
◆ format()
|
overridevirtual |
returns the format string for this parser implementation, which is "atom"
- Returns
"atom"
Implements Syndication::AbstractParser.
Definition at line 78 of file atom/parser.cpp.
◆ parse()
|
overridevirtual |
parses either an EntryDocument or a FeedDocument from a document source.
If the source is not an atom document, an invalid FeedDocument is returned.
- See also
- SpecificDocument::isValid()
- Parameters
-
source the document source to parse
Implements Syndication::AbstractParser.
Definition at line 42 of file atom/parser.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.