1#ifndef __XRDPFC_IO_ENTIRE_FILE_HH__
2#define __XRDPFC_IO_ENTIRE_FILE_HH__
49 bool HasFile()
const {
return m_file != 0; }
54 int Read(
char *buff,
long long off,
int size)
override;
57 std::vector<uint32_t> &csvec, uint64_t
opts=0,
int *csfix=0)
override;
78 long long FSize()
override;
83 int ReadBegin(
char *buff,
long long off,
int size,
ReadReqRH *rh);
89 int initialStat(
struct stat &sbuff);
virtual int pgRead(char *buff, long long offs, int rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0)
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Downloads original file into a single file on local disk. Handles read requests as they come along.
bool HasFile() const
Check if File was opened successfully.
void Update(XrdOucCacheIO &iocp) override
void DetachFinalize() override
Abstract virtual method of XrdPfc::IO Called to destruct the IO object after it is no longer used.
int Read(char *buff, long long off, int size) override
Pass Read request to the corresponding File object.
int Fstat(struct stat &sbuff) override
bool ioActive() override
Abstract virtual method of XrdPfc::IO Called to check if destruction needs to be done in a separate t...
void pgRead(XrdOucCacheIOCB &iocb, char *buff, long long off, int size, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0) override
int ReadV(const XrdOucIOVec *readV, int n) override
Pass ReadV request to the corresponding File object.
long long FSize() override
IOFile(XrdOucCacheIO *io, Cache &cache)
Base cache-io class that implements some XrdOucCacheIO abstract methods.