Contents Up Previous Next

wxArchiveClassFactory

An abstract base class which serves as a common interface to archive class factories such as wxZipClassFactory.

For each supported archive type (such as zip) there is a class factory derived from wxArchiveClassFactory, which allows archive objects to be created in a generic way, without knowing the particular type of archive being used.

Derived from

wxObject

Include files

<wx/archive.h>

See also

Archive formats such as zip
Generic archive programming
wxArchiveEntry
wxArchiveInputStream
wxArchiveOutputStream

Members

wxArchiveClassFactory::Get/SetConv
wxArchiveClassFactory::GetInternalName
wxArchiveClassFactory::NewEntry
wxArchiveClassFactory::NewStream


wxArchiveClassFactory::Get/SetConv

wxMBConv& GetConv() const

void SetConv(wxMBConv& conv)

The wxMBConv object that the created streams will use when translating meta-data. The initial default, set by the constructor, is wxConvLocal.


wxArchiveClassFactory::GetInternalName

wxString GetInternalName(const wxString& name, wxPathFormat format = wxPATH_NATIVE) const

Calls the static GetInternalName() function for the archive entry type, for example wxZipEntry::GetInternalName().


wxArchiveClassFactory::NewEntry

wxArchiveEntry* NewEntry() const

Create a new wxArchiveEntry object of the appropriate type.


wxArchiveClassFactory::NewStream

wxArchiveInputStream* NewStream(wxInputStream& stream) const

wxArchiveOutputStream* NewStream(wxOutputStream& stream) const

Create a new wxArchiveInputStream or wxArchiveOutputStream of the appropriate type.