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.

Frank Osterfeld

Definition at line 29 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 ( )


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

Member Function Documentation

◆ accept()

bool Syndication::Atom::Parser::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.

sourcedocument source to check

Implements Syndication::AbstractParser.

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

◆ format()

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

returns the format string for this parser implementation, which is "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

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
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-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:02:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.