/* */ #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 std::shared_ptr& fileAllocMan, DownloadEngine* e) : SequentialDispatcherCommand(cuid, fileAllocMan, e) {} std::unique_ptr FileAllocationDispatcherCommand::createCommand (const std::shared_ptr& entry) { cuid_t newCUID = getDownloadEngine()->newCUID(); A2_LOG_INFO(fmt(MSG_FILE_ALLOCATION_DISPATCH, newCUID)); return make_unique (newCUID, entry->getRequestGroup(), getDownloadEngine(), entry); } } // namespace aria2