]>
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 license
10 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "sckfile.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
29 #include <wx/wfstream.h>
30 #include <wx/protocol/file.h>
32 #if !USE_SHARED_LIBRARY
33 IMPLEMENT_DYNAMIC_CLASS(wxFileProto
, wxProtocol
)
34 IMPLEMENT_PROTOCOL(wxFileProto
, _T("file"), NULL
, FALSE
)
37 wxFileProto::wxFileProto()
42 wxFileProto::~wxFileProto()
46 wxInputStream
*wxFileProto::GetInputStream(const wxString
& path
)
48 return new wxFileInputStream(path
);