From 01e1fdaf495342ae8735ec74eb57f912fa67d535 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Jul 2012 21:07:10 +0900 Subject: Parse torrent file on the fly if --follow-torrent=mem is given In this changes, Bencode parser in bencode2 is removed and the request is delegated to BencodeParser. --- src/ByteArrayDiskWriterFactory.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/ByteArrayDiskWriterFactory.h') diff --git a/src/ByteArrayDiskWriterFactory.h b/src/ByteArrayDiskWriterFactory.h index c770e7ac..5a839371 100644 --- a/src/ByteArrayDiskWriterFactory.h +++ b/src/ByteArrayDiskWriterFactory.h @@ -2,7 +2,7 @@ /* * aria2 - The high speed download utility * - * Copyright (C) 2006 Tatsuhiro Tsujikawa + * Copyright (C) 2012 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,17 +35,13 @@ #ifndef D_BYTE_ARRAY_DISK_WRITER_FACTORY_H #define D_BYTE_ARRAY_DISK_WRITER_FACTORY_H -#include "DiskWriterFactory.h" +#include "AnonDiskWriterFactory.h" +#include "ByteArrayDiskWriter.h" namespace aria2 { -class ByteArrayDiskWriter; - -class ByteArrayDiskWriterFactory:public DiskWriterFactory -{ -public: - SharedHandle newDiskWriter(const std::string& filename); -}; +typedef AnonDiskWriterFactory +ByteArrayDiskWriterFactory; typedef SharedHandle ByteArrayDiskWriterFactoryHandle; -- cgit