1 #ifndef __XRDPFC_IO_ENTIRE_FILE_HH__
2 #define __XRDPFC_IO_ENTIRE_FILE_HH__
48 bool HasFile()
const {
return m_file != 0; }
53 int Read(
char *buff,
long long off,
int size)
override;
56 std::vector<uint32_t> &csvec, uint64_t
opts=0,
int *csfix=0)
override;
77 long long FSize()
override;
82 int ReadBegin(
char *buff,
long long off,
int size,
ReadReqRH *rh);
88 int initialStat(
struct stat &sbuff);
int stat(const char *path, struct stat *buf)
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...
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)
virtual int pgRead(char *buff, long long offs, int rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0)
Base cache-io class that implements some XrdOucCacheIO abstract methods.