SDX::ResourceReader Class Reference

Something that can read a resource and send it to a contentHandler, for example a FileReader. More...

#include <SDXResourceReader.h>

Inheritance diagram for SDX::ResourceReader:

SDX::Helpers::StreamReader SDX::Formats::CsvStreamReader SDX::Formats::TabBasedStreamReader SDX::Formats::XmlStreamReader

List of all members.

Public Member Functions

 ResourceReader (ContentHandler *contentHandler=0)
 Contructor.
void setContentHandler (ContentHandler *contentHandler)
 Set the content handler to send content to.
std::string getError ()
 If read() returns false, you can call this method to find out what went wrong.
bool read ()
 Read resource and send it to the set content handler.

Protected Member Functions

virtual void process ()=0
 Do the real processing of the resource in this method.

Protected Attributes

ContentHandlerm_contentHandler
 The content handler to send content to.
std::string m_error
 If aomething goes wrong during processing, store the error in this variable.


Detailed Description

Something that can read a resource and send it to a contentHandler, for example a FileReader.

Definition at line 13 of file SDXResourceReader.h.


The documentation for this class was generated from the following files:

Generated on Mon Apr 27 16:55:49 2009 for SDX by  doxygen 1.5.8