]>
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
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_STREAMS && wxUSE_ARCHIVE_STREAMS
18 #include "wx/archive.h"
20 IMPLEMENT_ABSTRACT_CLASS(wxArchiveEntry
, wxObject
)
21 IMPLEMENT_ABSTRACT_CLASS(wxArchiveClassFactory
, wxFilterClassFactoryBase
)
24 /////////////////////////////////////////////////////////////////////////////
25 // wxArchiveInputStream
27 wxArchiveInputStream::wxArchiveInputStream(wxInputStream
& stream
,
29 : wxFilterInputStream(stream
),
34 wxArchiveInputStream::wxArchiveInputStream(wxInputStream
*stream
,
36 : wxFilterInputStream(stream
),
42 /////////////////////////////////////////////////////////////////////////////
43 // wxArchiveOutputStream
45 wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream
& stream
,
47 : wxFilterOutputStream(stream
),
52 wxArchiveOutputStream::wxArchiveOutputStream(wxOutputStream
*stream
,
54 : wxFilterOutputStream(stream
),
60 /////////////////////////////////////////////////////////////////////////////
63 void wxArchiveEntry::SetNotifier(wxArchiveNotifier
& notifier
)
66 m_notifier
= ¬ifier
;
67 m_notifier
->OnEntryUpdated(*this);
70 wxArchiveEntry
& wxArchiveEntry::operator=(const wxArchiveEntry
& WXUNUSED(e
))
77 /////////////////////////////////////////////////////////////////////////////
78 // wxArchiveClassFactory
80 wxArchiveClassFactory
*wxArchiveClassFactory::sm_first
= NULL
;
82 void wxArchiveClassFactory::Remove()
86 wxArchiveClassFactory
**pp
= &sm_first
;
97 #endif // wxUSE_STREAMS && wxUSE_ARCHIVE_STREAMS