]> git.saurik.com Git - wxWidgets.git/blob - src/common/archive.cpp
wxLaunchDefaultBrowser() now supports wxBROWSER_NEW_WINDOW flag (and it actually...
[wxWidgets.git] / src / common / archive.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: archive.cpp
3 // Purpose: Streams for archive formats
4 // Author: Mike Wetherell
5 // RCS-ID: $Id$
6 // Copyright: (c) Mike Wetherell
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
12
13 #ifdef __BORLANDC__
14 #pragma hdrstop
15 #endif
16
17 #ifndef WX_PRECOMP
18 #include "wx/defs.h"
19 #endif
20
21 #if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
22
23 #include "wx/archive.h"
24
25 IMPLEMENT_ABSTRACT_CLASS(wxArchiveEntry, wxObject)
26 IMPLEMENT_ABSTRACT_CLASS(wxArchiveClassFactory, wxObject)
27
28 #if wxUSE_ZIPSTREAM
29 //FORCE_LINK(zipstrm)
30 extern int _wx_link_dummy_func_zipstrm();
31 static int _wx_link_dummy_var_zipstrm =
32 _wx_link_dummy_func_zipstrm ();
33 #endif
34
35
36 /////////////////////////////////////////////////////////////////////////////
37 // wxArchiveInputStream
38
39 wxArchiveInputStream::wxArchiveInputStream(wxInputStream& stream,
40 wxMBConv& conv)
41 : wxFilterInputStream(stream),
42 m_conv(conv)
43 {
44 }
45
46
47 /////////////////////////////////////////////////////////////////////////////
48 // wxArchiveOutputStream
49
50 wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream& stream,
51 wxMBConv& conv)
52 : wxFilterOutputStream(stream),
53 m_conv(conv)
54 {
55 }
56
57
58 /////////////////////////////////////////////////////////////////////////////
59 // wxArchiveEntry
60
61 void wxArchiveEntry::SetNotifier(wxArchiveNotifier& notifier)
62 {
63 UnsetNotifier();
64 m_notifier = &notifier;
65 m_notifier->OnEntryUpdated(*this);
66 }
67
68 wxArchiveEntry& wxArchiveEntry::operator=(const wxArchiveEntry& WXUNUSED(e))
69 {
70 m_notifier = NULL;
71 return *this;
72 }
73
74 #endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS