]> git.saurik.com Git - wxWidgets.git/blame - src/common/archive.cpp
Build fix.
[wxWidgets.git] / src / common / archive.cpp
CommitLineData
00375592 1/////////////////////////////////////////////////////////////////////////////
8898456d 2// Name: src/common/archive.cpp
00375592
VZ
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
00375592
VZ
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
13#ifdef __BORLANDC__
8898456d 14 #pragma hdrstop
00375592
VZ
15#endif
16
8898456d
WS
17#if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
18
00375592 19#ifndef WX_PRECOMP
00375592
VZ
20#endif
21
00375592 22#include "wx/archive.h"
6cf2fb76 23#include "wx/link.h"
00375592
VZ
24
25IMPLEMENT_ABSTRACT_CLASS(wxArchiveEntry, wxObject)
26IMPLEMENT_ABSTRACT_CLASS(wxArchiveClassFactory, wxObject)
27
81f90336 28#if wxUSE_ZIPSTREAM
6cf2fb76 29wxFORCE_LINK_MODULE(zipstrm)
81f90336 30#endif
00375592
VZ
31
32
33/////////////////////////////////////////////////////////////////////////////
34// wxArchiveInputStream
35
36wxArchiveInputStream::wxArchiveInputStream(wxInputStream& stream,
37 wxMBConv& conv)
38 : wxFilterInputStream(stream),
39 m_conv(conv)
40{
41}
42
43
44/////////////////////////////////////////////////////////////////////////////
45// wxArchiveOutputStream
46
47wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream& stream,
48 wxMBConv& conv)
49 : wxFilterOutputStream(stream),
50 m_conv(conv)
51{
52}
53
54
55/////////////////////////////////////////////////////////////////////////////
56// wxArchiveEntry
57
58void wxArchiveEntry::SetNotifier(wxArchiveNotifier& notifier)
59{
60 UnsetNotifier();
61 m_notifier = &notifier;
62 m_notifier->OnEntryUpdated(*this);
63}
64
f44eaed6 65wxArchiveEntry& wxArchiveEntry::operator=(const wxArchiveEntry& WXUNUSED(e))
00375592 66{
f44eaed6 67 m_notifier = NULL;
00375592
VZ
68 return *this;
69}
70
9e8e867f 71#endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS