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