1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/arcfind.cpp
3 // Purpose: Streams for archive formats
4 // Author: Mike Wetherell
5 // Copyright: (c) Mike Wetherell
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 // For compilers that support precompilation, includes "wx.h".
10 #include "wx/wxprec.h"
16 #if wxUSE_ARCHIVE_STREAMS
18 #include "wx/archive.h"
20 // These functions are in a separate file so that statically linked apps
21 // that do not call them to search for archive handlers will only link in
22 // the archive classes they use.
24 const wxArchiveClassFactory
*
25 wxArchiveClassFactory::Find(const wxString
& protocol
, wxStreamProtocolType type
)
27 for (const wxArchiveClassFactory
*f
= GetFirst(); f
; f
= f
->GetNext())
28 if (f
->CanHandle(protocol
, type
))
35 const wxArchiveClassFactory
*wxArchiveClassFactory::GetFirst()
38 wxUseArchiveClasses();
42 #endif // wxUSE_ARCHIVE_STREAMS