]> git.saurik.com Git - wxWidgets.git/blob - src/common/sckfile.cpp
Misc. Dialog Editor/resource bugs fixed
[wxWidgets.git] / src / common / sckfile.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: sckfile.cpp
3 // Purpose: File protocol
4 // Author: Guilhem Lavaux
5 // Modified by:
6 // Created: 20/07/97
7 // RCS-ID: $Id$
8 // Copyright: (c) 1997, 1998 Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11 #ifdef __GNUG__
12 #pragma implementation "sckfile.h"
13 #endif
14
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
17
18 #ifdef __BORLANDC__
19 #pragma hdrstop
20 #endif
21
22 #ifndef WX_PRECOMP
23 #include "wx/defs.h"
24 #endif
25
26 #include <stdio.h>
27 #include "wx/wfstream.h"
28 #include "wx/protocol/file.h"
29
30 IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol)
31 IMPLEMENT_PROTOCOL(wxFileProto, wxT("file"), NULL, FALSE)
32
33 wxFileProto::wxFileProto()
34 : wxProtocol()
35 {
36 }
37
38 wxFileProto::~wxFileProto()
39 {
40 }
41
42 wxInputStream *wxFileProto::GetInputStream(const wxString& path)
43 {
44 return new wxFileInputStream(path);
45 }
46