/* */ #include "FileAllocationDispatcherCommand.h" #include "FileAllocationEntry.h" #include "FileAllocationCommand.h" #include "message.h" #include "Logger.h" #include "DownloadContext.h" namespace aria2 { FileAllocationDispatcherCommand::FileAllocationDispatcherCommand (int32_t cuid, const SharedHandle& fileAllocMan, DownloadEngine* e):SequentialDispatcherCommand (cuid, fileAllocMan, e) {} Command* FileAllocationDispatcherCommand::createCommand (const SharedHandle& entry) { int32_t newCUID = _e->newCUID(); logger->info(MSG_FILE_ALLOCATION_DISPATCH, newCUID); FileAllocationCommand* command = new FileAllocationCommand(newCUID, entry->getRequestGroup(), _e, entry); return command; } } // namespace aria2