/* */ #ifndef _D_FILE_ALLOCATION_MAN_H_ #define _D_FILE_ALLOCATION_MAN_H_ #include "common.h" class FileAllocationEntry; extern typedef SharedHandle FileAllocationEntryHandle; extern typedef deque FileAllocationEntries; class FileAllocationMan { private: FileAllocationEntries _fileAllocationEntries; FileAllocationEntryHandle _currentFileAllocationEntry; public: FileAllocationMan(); ~FileAllocationMan(); bool isFileAllocationBeingExecuted() const; FileAllocationEntryHandle getCurrentFileAllocationEntry(); void markCurrentFileAllocationEntryDone(); bool nextFileAllocationEntryExists() const; FileAllocationEntryHandle popNextFileAllocationEntry(); void pushFileAllocationEntry(const FileAllocationEntryHandle& entry); int32_t countFileAllocationEntryInQueue() const; }; typedef SharedHandle FileAllocationManHandle; #endif // _D_FILE_ALLOCATION_MAN_H_