Syndication::Atom::Parser

Search for usage in LXR

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 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()

Syndication::Atom::Parser::~Parser ( )
overridedefault

destructor

Member Function Documentation

◆ accept()

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 36 of file atom/parser.cpp.

◆ format()

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 78 of file atom/parser.cpp.

◆ parse()

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 42 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-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.