Syndication::Atom::Parser Class
class Syndication::Atom::Parserparser implementation for Atom 1.0 and 0.3. More...
Header: | #include <Syndication/Atom/Parser> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Syndication) target_link_libraries(mytarget PRIVATE KF6::Syndication) |
Inherits: | Syndication::AbstractParser |
Public Functions
Parser() |
Reimplemented Public Functions
virtual bool | accept(const Syndication::DocumentSource &source) const override |
virtual QString | format() const override |
virtual Syndication::SpecificDocumentPtr | parse(const Syndication::DocumentSource &source) const override |
Detailed Description
Member Function Documentation
Parser::Parser()
default constructor
[override virtual]
bool Parser::accept(const Syndication::DocumentSource &source) const
Reimplements: AbstractParser::accept(const Syndication::DocumentSource &source) const.
returns whether the source looks like an Atom 1.0 or 0.3 document, by checking the root element.
source document source to check
[override virtual]
QString Parser::format() const
Reimplements: AbstractParser::format() const.
returns the format string for this parser implementation, which is "atom"
Returns "atom"
[override virtual]
Syndication::SpecificDocumentPtr Parser::parse(const Syndication::DocumentSource &source) const
Reimplements: AbstractParser::parse(const Syndication::DocumentSource &source) const.
parses either an EntryDocument or a FeedDocument from a document source. If the source is not an atom document, an invalid FeedDocument is returned.
source the document source to parse
See also SpecificDocument::isValid().