]>
git.saurik.com Git - wxWidgets.git/blob - src/common/sckfile.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: File protocol
4 // Author: Guilhem Lavaux
8 // Copyright: (c) 1997, 1998 Guilhem Lavaux
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
12 #pragma implementation "sckfile.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
26 #if wxUSE_STREAMS && wxUSE_PROTOCOL_FILE
29 #include "wx/wfstream.h"
30 #include "wx/protocol/file.h"
32 IMPLEMENT_DYNAMIC_CLASS(wxFileProto
, wxProtocol
)
33 IMPLEMENT_PROTOCOL(wxFileProto
, wxT("file"), NULL
, false)
35 wxFileProto::wxFileProto()
40 wxFileProto::~wxFileProto()
44 wxInputStream
*wxFileProto::GetInputStream(const wxString
& path
)
46 wxFileInputStream
* retval
= new wxFileInputStream(wxURI::Unescape(path
));
55 #endif // wxUSE_STREAMS && wxUSE_PROTOCOL_FILE