diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-07-26 21:07:10 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-07-26 21:07:10 +0900 |
| commit | 01e1fdaf495342ae8735ec74eb57f912fa67d535 (patch) | |
| tree | e5573e8aa7f3786d8364c76cabf5397f7473ed2f /src/ByteArrayDiskWriterFactory.h | |
| parent | 7176107414f73d7fe0cfd7d5ce516aa41a2f0b22 (diff) | |
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.
Diffstat (limited to 'src/ByteArrayDiskWriterFactory.h')
| -rw-r--r-- | src/ByteArrayDiskWriterFactory.h | 14 |
1 files changed, 5 insertions, 9 deletions
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<DiskWriter> newDiskWriter(const std::string& filename); -}; +typedef AnonDiskWriterFactory<ByteArrayDiskWriter> +ByteArrayDiskWriterFactory; typedef SharedHandle<ByteArrayDiskWriterFactory> ByteArrayDiskWriterFactoryHandle; |
