diff options
author | Max Horn | 2010-08-16 19:58:20 +0000 |
---|---|---|
committer | Max Horn | 2010-08-16 19:58:20 +0000 |
commit | 861e5205792673f74b382589a4bd1088abf30608 (patch) | |
tree | 603cbeb46578cb99457141cedde68cf77c5b1e5f | |
parent | 8a5705132d236f9bce49a420ddfff94157eabcb5 (diff) | |
download | scummvm-rg350-861e5205792673f74b382589a4bd1088abf30608.tar.gz scummvm-rg350-861e5205792673f74b382589a4bd1088abf30608.tar.bz2 scummvm-rg350-861e5205792673f74b382589a4bd1088abf30608.zip |
COMMON: Try to clarify and update some Common::Archive docs
svn-id: r52131
-rw-r--r-- | common/archive.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/common/archive.h b/common/archive.h index 1cc983f77b..c12ca79be0 100644 --- a/common/archive.h +++ b/common/archive.h @@ -79,7 +79,8 @@ public: /** - * Archive allows searches of (file)names into an arbitrary container. + * Archive allows managing of member of arbitrary containers in a uniform + * fashion, allowing lookup by (file)names. * It also supports opening a file and returning an usable input stream. */ class Archive { @@ -87,24 +88,23 @@ public: virtual ~Archive() { } /** - * Check if a name is present in the Archive. Patterns are not allowed, - * as this is meant to be a quick File::exists() replacement. + * Check if a member with the given name is present in the Archive. + * Patterns are not allowed, as this is meant to be a quick File::exists() + * replacement. */ virtual bool hasFile(const String &name) = 0; /** - * Add all the names present in the Archive which match pattern to - * list. Returned names can be used as parameters to createReadStreamForMember. - * Must not remove elements from the list. + * Add all members of the Archive matching the specified pattern to list. + * Must only append to list, and not remove elements from it. * - * @return the number of names added to list + * @return the number of members added to list */ virtual int listMatchingMembers(ArchiveMemberList &list, const String &pattern); /** - * Add all the names present in the Archive to list. Returned - * names can be used as parameters to createReadStreamForMember. - * Must not remove elements from the list. + * Add all members of the Archive to list. + * Must only append to list, and not remove elements from it. * * @return the number of names added to list */ @@ -116,8 +116,8 @@ public: virtual ArchiveMemberPtr getMember(const String &name) = 0; /** - * Create a stream bound to a member in the archive. If no member with the - * specified name exists, then 0 is returned. + * Create a stream bound to a member with the specified name in the + * archive. If no member with this name exists, 0 is returned. * @return the newly created input stream */ virtual SeekableReadStream *createReadStreamForMember(const String &name) const = 0; |