]>
Commit | Line | Data |
---|---|---|
f4ada568 GL |
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 | |
fcc6dddd JS |
14 | |
15 | // For compilers that support precompilation, includes "wx.h". | |
16 | #include "wx/wxprec.h" | |
f4ada568 GL |
17 | |
18 | #ifdef __BORLANDC__ | |
19 | #pragma hdrstop | |
20 | #endif | |
21 | ||
fcc6dddd JS |
22 | #ifndef WX_PRECOMP |
23 | #endif | |
24 | ||
25 | #include <stdio.h> | |
25331334 GL |
26 | #include <wx/wfstream.h> |
27 | #include <wx/protocol/file.h> | |
fcc6dddd | 28 | |
f4ada568 GL |
29 | #if !USE_SHARED_LIBRARY |
30 | IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol) | |
31 | IMPLEMENT_PROTOCOL(wxFileProto, "file", NULL, FALSE) | |
32 | #endif | |
33 | ||
34 | wxFileProto::wxFileProto() | |
35 | : wxProtocol() | |
36 | { | |
37 | } | |
38 | ||
39 | wxFileProto::~wxFileProto() | |
40 | { | |
41 | } | |
42 | ||
43 | wxInputStream *wxFileProto::GetInputStream(const wxString& path) | |
44 | { | |
45 | return new wxFileInputStream(path); | |
46 | } |