/* */ #include "FileAllocationDispatcherCommand.h" #include "FileAllocationEntry.h" #include "FileAllocationCommand.h" #include "message.h" #include "Logger.h" #include "LogFactory.h" #include "util.h" #include "fmt.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 = getDownloadEngine()->newCUID(); A2_LOG_INFO(fmt(MSG_FILE_ALLOCATION_DISPATCH, util::itos(newCUID).c_str())); FileAllocationCommand* command = new FileAllocationCommand(newCUID, entry->getRequestGroup(), getDownloadEngine(), entry); return command; } } // namespace aria2