/* */ #ifndef _D_SINGLE_FILE_ALLOCATION_ITERATOR_H_ #define _D_SINGLE_FILE_ALLOCATION_ITERATOR_H_ #include "FileAllocationIterator.h" class AbstractSingleDiskAdaptor; class SingleFileAllocationIterator:public FileAllocationIterator { private: AbstractSingleDiskAdaptor* _diskAdaptor; int64_t _offset; public: SingleFileAllocationIterator(AbstractSingleDiskAdaptor* diskAdaptor); virtual ~SingleFileAllocationIterator(); virtual void allocateChunk(); virtual bool finished(); virtual int64_t getCurrentLength() { return _offset; } virtual int64_t getTotalLength(); }; typedef SharedHandle SingleFileAllocationIteratorHandle; #endif // _D_SINGLE_FILE_ALLOCATION_ITERATOR_H_