]>
git.saurik.com Git - wxWidgets.git/blob - src/common/archive.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/archive.cpp
3 // Purpose: Streams for archive formats
4 // Author: Mike Wetherell
6 // Copyright: (c) Mike Wetherell
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
17 #if wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS
19 #include "wx/archive.h"
21 IMPLEMENT_ABSTRACT_CLASS(wxArchiveEntry
, wxObject
)
22 IMPLEMENT_ABSTRACT_CLASS(wxArchiveClassFactory
, wxFilterClassFactoryBase
)
25 /////////////////////////////////////////////////////////////////////////////
26 // wxArchiveInputStream
28 wxArchiveInputStream::wxArchiveInputStream(wxInputStream
& stream
,
30 : wxFilterInputStream(stream
),
35 wxArchiveInputStream::wxArchiveInputStream(wxInputStream
*stream
,
37 : wxFilterInputStream(stream
),
43 /////////////////////////////////////////////////////////////////////////////
44 // wxArchiveOutputStream
46 wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream
& stream
,
48 : wxFilterOutputStream(stream
),
53 wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream
*stream
,
55 : wxFilterOutputStream(stream
),
61 /////////////////////////////////////////////////////////////////////////////
64 void wxArchiveEntry::SetNotifier(wxArchiveNotifier
& notifier
)
67 m_notifier
= ¬ifier
;
68 m_notifier
->OnEntryUpdated(*this);
71 wxArchiveEntry
& wxArchiveEntry::operator=(const wxArchiveEntry
& WXUNUSED(e
))
78 /////////////////////////////////////////////////////////////////////////////
79 // wxArchiveClassFactory
81 wxArchiveClassFactory
*wxArchiveClassFactory::sm_first
= NULL
;
83 void wxArchiveClassFactory::Remove()
87 wxArchiveClassFactory
**pp
= &sm_first
;
98 #endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS