]> git.saurik.com Git - wxWidgets.git/blame - src/common/sckfile.cpp
* wxDataStreams use wxUint now.
[wxWidgets.git] / src / common / sckfile.cpp
CommitLineData
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__
ce4169a4 19 #pragma hdrstop
f4ada568
GL
20#endif
21
fcc6dddd 22#ifndef WX_PRECOMP
ce4169a4 23 #include "wx/defs.h"
fcc6dddd
JS
24#endif
25
ce4169a4
RR
26#if wxUSE_SOCKETS
27
fcc6dddd 28#include <stdio.h>
25331334
GL
29#include <wx/wfstream.h>
30#include <wx/protocol/file.h>
fcc6dddd 31
f4ada568
GL
32#if !USE_SHARED_LIBRARY
33IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol)
00421206 34IMPLEMENT_PROTOCOL(wxFileProto, _T("file"), NULL, FALSE)
f4ada568
GL
35#endif
36
37wxFileProto::wxFileProto()
38 : wxProtocol()
39{
40}
41
42wxFileProto::~wxFileProto()
43{
44}
45
46wxInputStream *wxFileProto::GetInputStream(const wxString& path)
47{
48 return new wxFileInputStream(path);
49}
35a4dab7
GL
50
51#endif
52 // wxUSE_SOCKETS