ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <lab.h>

Inheritance diagram for Grim::Lab:
Collaboration diagram for Grim::Lab:

List of all members.

Public Member Functions

bool open (const Common::String &filename, bool keepStream=false)
 Lab ()
virtual ~Lab ()
virtual bool hasFile (const Common::String &name) const override
 Check if a member with the given name is present in the Archive.
virtual int listMembers (Common::ArchiveMemberList &list) const override
 Add all members of the Archive to list.
virtual const
Common::ArchiveMemberPtr 
getMember (const Common::String &name) const override
 Returns a ArchiveMember representation of the given file.
virtual
Common::SeekableReadStream
createReadStreamForMember (const Common::String &name) const override
 Create a stream bound to a member with the specified name in the archive.

Private Types

typedef Common::SharedPtr
< LabEntry
LabEntryPtr
typedef Common::HashMap
< Common::String, LabEntryPtr,
Common::IgnoreCase_Hash,
Common::IgnoreCase_EqualTo
LabMap

Private Member Functions

void parseGrimFileTable (Common::File *_f)
void parseMonkey4FileTable (Common::File *_f)

Private Attributes

Common::String _labFileName
LabMap _entries
Common::SeekableReadStream_stream

Detailed Description

Definition at line 47 of file lab.h.


Member Typedef Documentation

Definition at line 63 of file lab.h.


Constructor & Destructor Documentation

Grim::Lab::Lab (  ) 

Definition at line 41 of file lab.cpp.

Grim::Lab::~Lab (  )  [virtual]

Definition at line 45 of file lab.cpp.


Member Function Documentation

Common::SeekableReadStream * Grim::Lab::createReadStreamForMember ( const Common::String name  )  const [override, virtual]

Create a stream bound to a member with the specified name in the archive.

If no member with this name exists, 0 is returned.

Returns:
the newly created input stream

Implements Common::Archive.

Definition at line 175 of file lab.cpp.

const Common::ArchiveMemberPtr Grim::Lab::getMember ( const Common::String name  )  const [override, virtual]

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

Definition at line 166 of file lab.cpp.

bool Grim::Lab::hasFile ( const Common::String name  )  const [override, virtual]

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.

Implements Common::Archive.

Definition at line 149 of file lab.cpp.

int Grim::Lab::listMembers ( Common::ArchiveMemberList list  )  const [override, virtual]

Add all members of the Archive to list.

Must only append to list, and not remove elements from it.

Returns:
the number of names added to list

Implements Common::Archive.

Definition at line 155 of file lab.cpp.

bool Grim::Lab::open ( const Common::String filename,
bool  keepStream = false 
)

Definition at line 49 of file lab.cpp.

void Grim::Lab::parseGrimFileTable ( Common::File _f  )  [private]

Definition at line 76 of file lab.cpp.

void Grim::Lab::parseMonkey4FileTable ( Common::File _f  )  [private]

Definition at line 106 of file lab.cpp.


Member Data Documentation

Definition at line 65 of file lab.h.

Definition at line 62 of file lab.h.

Definition at line 66 of file lab.h.


The documentation for this class was generated from the following files:


Generated on Sat Jul 20 2019 05:03:02 for ResidualVM by doxygen 1.7.1
curved edge   curved edge