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

#include <lang_filter.h>

Inheritance diagram for Grim::LangFilter:
Collaboration diagram for Grim::LangFilter:

List of all members.

Public Member Functions

 LangFilter (Common::Archive *arc, Common::Language lang)
 ~LangFilter ()
bool hasFile (const Common::String &name) const override
 Check if a member with the given name is present in the Archive.
int listMembers (Common::ArchiveMemberList &list) const override
 Add all members of the Archive to list.
const Common::ArchiveMemberPtr getMember (const Common::String &name) const override
 Returns a ArchiveMember representation of the given file.
Common::SeekableReadStreamcreateReadStreamForMember (const Common::String &name) const override
 Create a stream bound to a member with the specified name in the archive.

Private Types

enum  kLang {
  kCommon = 0, kEnglish, kFrench, kGerman,
  kItalian, kPortuguese, kSpanish
}

Private Attributes

Common::Archive_arc
kLang _lang

Static Private Attributes

static const char * kLanguages1 [7] = { "@@_", "US_", "FR_", "GE_", "IT_", "PT_", "SP_" }
static const char * kLanguages2 [7] = { "Common/", "Eng/", "Fra/", "Deu/", "Ita/", "Brz/", "Esp/" }

Detailed Description

Definition at line 31 of file lang_filter.h.


Member Enumeration Documentation

enum Grim::LangFilter::kLang [private]
Enumerator:
kCommon 
kEnglish 
kFrench 
kGerman 
kItalian 
kPortuguese 
kSpanish 

Definition at line 44 of file lang_filter.h.


Constructor & Destructor Documentation

Grim::LangFilter::LangFilter ( Common::Archive arc,
Common::Language  lang 
)

Definition at line 34 of file lang_filter.cpp.

Grim::LangFilter::~LangFilter (  ) 

Definition at line 65 of file lang_filter.cpp.


Member Function Documentation

Common::SeekableReadStream * Grim::LangFilter::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 116 of file lang_filter.cpp.

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

Returns a ArchiveMember representation of the given file.

Implements Common::Archive.

Definition at line 112 of file lang_filter.cpp.

bool Grim::LangFilter::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 69 of file lang_filter.cpp.

int Grim::LangFilter::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 79 of file lang_filter.cpp.


Member Data Documentation

Definition at line 42 of file lang_filter.h.

Definition at line 53 of file lang_filter.h.

const char * Grim::LangFilter::kLanguages1 = { "@@_", "US_", "FR_", "GE_", "IT_", "PT_", "SP_" } [static, private]

Definition at line 54 of file lang_filter.h.

const char * Grim::LangFilter::kLanguages2 = { "Common/", "Eng/", "Fra/", "Deu/", "Ita/", "Brz/", "Esp/" } [static, private]

Definition at line 55 of file lang_filter.h.


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


Generated on Sat Sep 21 2019 05:03:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge