Syndication::Atom::Parser

Syndication::Atom::Parser Class Reference

#include <parser.h>

Inheritance diagram for Syndication::Atom::Parser:

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.

Author
Frank Osterfeld

Definition at line 30 of file atom/parser.h.

Constructor & Destructor Documentation

Syndication::Atom::Parser::Parser ( )

default constructor

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

Syndication::Atom::Parser::~Parser ( )
override

destructor

Definition at line 192 of file atom/parser.cpp.

Member Function Documentation

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

returns whether the source looks like an Atom 1.0 or 0.3 document, by checking the root element.

Parameters
sourcedocument source to check

Implements Syndication::AbstractParser.

Definition at line 37 of file atom/parser.cpp.

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

returns the format string for this parser implementation, which is "atom"

Returns
"atom"

Implements Syndication::AbstractParser.

Definition at line 80 of file atom/parser.cpp.

Syndication::SpecificDocumentPtr Syndication::Atom::Parser::parse ( const Syndication::DocumentSource source) const
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
sourcethe document source to parse

Implements Syndication::AbstractParser.

Definition at line 43 of file atom/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 Tue Jan 19 2021 23:05:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.