]> git.saurik.com Git - wxWidgets.git/blame - src/common/archive.cpp
More DLL build fixes for wxMediaCtrl
[wxWidgets.git] / src / common / archive.cpp
CommitLineData
00375592
VZ
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#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
11 #pragma implementation "archive.h"
12#endif
13
14// For compilers that support precompilation, includes "wx.h".
15#include "wx/wxprec.h"
16
17#ifdef __BORLANDC__
18 #pragma hdrstop
19#endif
20
21#ifndef WX_PRECOMP
22 #include "wx/defs.h"
23#endif
24
25#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
26
27#include "wx/archive.h"
28#include "wx/html/forcelnk.h"
29
30IMPLEMENT_ABSTRACT_CLASS(wxArchiveEntry, wxObject)
31IMPLEMENT_ABSTRACT_CLASS(wxArchiveClassFactory, wxObject)
32
33FORCE_LINK(zipstrm)
34
35
36/////////////////////////////////////////////////////////////////////////////
37// wxArchiveInputStream
38
39wxArchiveInputStream::wxArchiveInputStream(wxInputStream& stream,
40 wxMBConv& conv)
41 : wxFilterInputStream(stream),
42 m_conv(conv)
43{
44}
45
46
47/////////////////////////////////////////////////////////////////////////////
48// wxArchiveOutputStream
49
50wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream& stream,
51 wxMBConv& conv)
52 : wxFilterOutputStream(stream),
53 m_conv(conv)
54{
55}
56
57
58/////////////////////////////////////////////////////////////////////////////
59// wxArchiveEntry
60
61void wxArchiveEntry::SetNotifier(wxArchiveNotifier& notifier)
62{
63 UnsetNotifier();
64 m_notifier = &notifier;
65 m_notifier->OnEntryUpdated(*this);
66}
67
68wxArchiveEntry& wxArchiveEntry::operator=(const wxArchiveEntry& entry)
69{
70 m_notifier = entry.m_notifier;
71 return *this;
72}
73
74#endif