45 return OpenNextFile();
52 if (!TakeNextFileName())
return false;
54 if (!fFile.OpenReading(CurrentFileName().c_str())) {
55 EOUT(
"Cannot open file %s for reading", CurrentFileName().c_str());
59 DOUT1(
"Open lmd file %s for reading", CurrentFileName().c_str());
68 ClearCurrentFileName();
76 if (!fFile.isReading())
92 bufsize = ((uint64_t) (buf.
SegmentSize(0) * fReduce))/8*8;
94 if (!fFile.ReadBuffer(buf.
SegmentPtr(0), &bufsize)) {
95 DOUT3(
"File %s return 0 numev for buffer %u - end of file", CurrentFileName().c_str(), buf.
GetTotalSize());
void SetIO(FileInterface *_io, bool _ioowner=false)
Reference on memory from memory pool.
unsigned SegmentSize(unsigned n=0) const
Returns size on the segment, no any boundary checks.
void SetTotalSize(BufferSize_t len)
Set total length of the buffer to specified value Size cannot be bigger than original size of the buf...
BufferSize_t GetTotalSize() const
Return total size of all buffer segments.
void SetTypeId(unsigned tid)
void * SegmentPtr(unsigned n=0) const
Returns pointer on the segment, no any boundary checks.
Represents command with its arguments.
Defines and implements basic POSIX file interface.
Uniform Resource Locator interpreter.
bool HasOption(const std::string &optname) const
Reference on dabc::Worker