Syndication::RDF::Parser Class Reference

Parser implementation for RDF-based RSS 0.9 and RSS 1.0 feeds. More...

#include <parser.h>

Inherits Syndication::AbstractParser.

List of all members.

Public Member Functions

 Parser ()
virtual ~Parser ()
virtual bool accept (const DocumentSource &source) const
virtual QString format () const
virtual SpecificDocumentPtr parse (const DocumentSource &source) const

Detailed Description

Parser implementation for RDF-based RSS 0.9 and RSS 1.0 feeds.

Author:
Frank Osterfeld

Definition at line 41 of file parser.h.


Constructor & Destructor Documentation

Syndication::RDF::Parser::Parser (  ) 

default constructor

Definition at line 203 of file parser.cpp.

Syndication::RDF::Parser::~Parser (  )  [virtual]

destructor

Definition at line 209 of file parser.cpp.


Member Function Documentation

bool Syndication::RDF::Parser::accept ( const DocumentSource &  source  )  const [virtual]

returns whether the passed document looks like an RSS 0.9 or RSS 1.0 document.

Parameters:
source the document source to check

Definition at line 57 of file parser.cpp.

QString Syndication::RDF::Parser::format (  )  const [virtual]

format string of this parser, which is "rdf".

Returns:
"rdf"

Definition at line 217 of file parser.cpp.

SpecificDocumentPtr Syndication::RDF::Parser::parse ( const DocumentSource &  source  )  const [virtual]

Parses an RSS 0.9/1.0 document from a feed source.

RSS 0.9 documents are converted to RSS 1.0.

Parameters:
source The document source to parse
Returns:
parsed document (a Syndication::RDF::Document), or an invalid document if parsing failed.
See also:
Document::isValid()

Definition at line 71 of file parser.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys