/* */ #ifndef _D_FILE_ALLOCATOR_H_ #define _D_FILE_ALLOCATOR_H_ #include "common.h" #include "FileAllocationMonitor.h" class FileAllocator { private: FileAllocationMonitorHandle fileAllocationMonitor; public: FileAllocator():fileAllocationMonitor(0) {} ~FileAllocator() {} void allocate(int fd, uint64_t totalLength); void setFileAllocationMonitor(const FileAllocationMonitorHandle& monitor) { this->fileAllocationMonitor = monitor; } }; typedef SharedHandle FileAllocatorHandle; #endif // _D_FILE_ALLOCATOR_H_