]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/common/sckfile.cpp
old makefiles removed
[wxWidgets.git] / src / common / sckfile.cpp
... / ...
CommitLineData
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#if wxUSE_SOCKETS
23
24#ifndef WX_PRECOMP
25#endif
26
27#include <stdio.h>
28#include <wx/wfstream.h>
29#include <wx/protocol/file.h>
30
31#if !USE_SHARED_LIBRARY
32IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol)
33IMPLEMENT_PROTOCOL(wxFileProto, _T("file"), NULL, FALSE)
34#endif
35
36wxFileProto::wxFileProto()
37 : wxProtocol()
38{
39}
40
41wxFileProto::~wxFileProto()
42{
43}
44
45wxInputStream *wxFileProto::GetInputStream(const wxString& path)
46{
47 return new wxFileInputStream(path);
48}
49
50#endif
51 // wxUSE_SOCKETS