From b3da11ba8afc3925de551ae7cc51ccc73e721211 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 8 Feb 2010 21:46:50 +0000 Subject: Introduce factory function makeArjArchive, hide ArjArchive class implementation svn-id: r48009 --- common/unarj.h | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) (limited to 'common/unarj.h') diff --git a/common/unarj.h b/common/unarj.h index f44828baca..831c8aeb90 100644 --- a/common/unarj.h +++ b/common/unarj.h @@ -32,27 +32,11 @@ namespace Common { -struct ArjHeader; - -typedef HashMap ArjFilesMap; - -class ArjArchive : public Common::Archive { - - Common::Array _headers; - ArjFilesMap _fileMap; - - Common::String _arjFilename; - -public: - ArjArchive(const String &name); - virtual ~ArjArchive(); - - // Common::Archive implementation - virtual bool hasFile(const String &name); - virtual int listMembers(ArchiveMemberList &list); - virtual ArchiveMemberPtr getMember(const String &name); - virtual SeekableReadStream *createReadStreamForMember(const String &name) const; -}; +/** + * This factory method creates an Archive instance corresponding to the content + * of the ARJ compressed file with the given name. + */ +Archive *makeArjArchive(const String &name); } // End of namespace Common -- cgit v1.2.3