syndication/atom
Syndication::Atom::Parser Class Reference
#include <parser.h>
Inherits AbstractParser.
Public Member Functions | |
Parser () | |
virtual | ~Parser () |
bool | accept (const Syndication::DocumentSource &source) const |
QString | format () const |
Syndication::SpecificDocumentPtr | parse (const Syndication::DocumentSource &source) const |
Detailed Description
Constructor & Destructor Documentation
Syndication::Atom::Parser::Parser | ( | ) |
default constructor
Definition at line 206 of file parser.cpp.
|
virtual |
destructor
Definition at line 207 of file parser.cpp.
Member Function Documentation
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.
- Parameters
-
source document source to check
Definition at line 51 of file parser.cpp.
QString Syndication::Atom::Parser::format | ( | ) | const |
returns the format string for this parser implementation, which is "atom"
- Returns
"atom"
Definition at line 98 of file parser.cpp.
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
- SpecificDocument::isValid()
- Parameters
-
source the document source to parse
Definition at line 57 of file parser.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.