CRingFileBlockReader

Name

CRingFileBlockReader -- CRingBlockreader that reads from file.

Synopsis


#include <CRingFileBlockReader.h>
class CRingFileBlockReader : public CRingBlockReader
{
public:
  CRingFileBlockReader(const char* filename);
  CRingFileBlockReader(int fd);
 
};


        

DESCRIPTION

This is a concrete subclass of CRingBlockReader that reads data from a file.

METHODS

CRingFileBlockReader(const char* filename);

Constructs the object using filename a path to the file to be opened. The file must be readable by the effective user id of the runnning process.

CRingFileBlockReader(int int fd);

Constructs the reader on a file alread opened on the file descriptor fd