code::DataProvider::DataHandler Class Reference

Inheritance diagram for code::DataProvider::DataHandler:

code::CompleteFileDataHandler List of all members.

Detailed Description

Implement a subclass of DataHandler to handle the data.

Author:
Lakshman
Version:
Id
code_DataProvider.h,v 1.4 2009/06/02 20:17:39 lakshman Exp


Public Member Functions

virtual void processData (const char *data, size_t datalen)=0
 The data arrives in chunks, so it is the subclass's responsibility to collate the data and do whatever it want to do with it.
virtual ~DataHandler ()
virtual void processFileStart (const std::string &dir, const std::string &filename)
 Implement this method to do special things when a file is being started.
virtual void processFileFinish (const std::string &dir, const std::string &filename)
 Implement this method to do special things when a file is complete.


Constructor & Destructor Documentation

virtual code::DataProvider::DataHandler::~DataHandler (  )  [inline, virtual]


Member Function Documentation

virtual void code::DataProvider::DataHandler::processData ( const char *  data,
size_t  datalen 
) [pure virtual]

The data arrives in chunks, so it is the subclass's responsibility to collate the data and do whatever it want to do with it.

Implemented in code::CompleteFileDataHandler.

virtual void code::DataProvider::DataHandler::processFileFinish ( const std::string &  dir,
const std::string &  filename 
) [inline, virtual]

Implement this method to do special things when a file is complete.

Reimplemented in code::CompleteFileDataHandler.

virtual void code::DataProvider::DataHandler::processFileStart ( const std::string &  dir,
const std::string &  filename 
) [inline, virtual]

Implement this method to do special things when a file is being started.

Reimplemented in code::CompleteFileDataHandler.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7