3 * Copyright (c) 2002 Frodo
4 * Portions Copyright (c) by the authors of ffmpeg and xvid
5 * Copyright (C) 2002-2013 Team XBMC
8 * This Program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This Program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with XBMC; see the file COPYING. If not, see
20 * <http://www.gnu.org/licenses/>.
29 class CFileReaderFile : public IFile
33 virtual ~CFileReaderFile();
34 virtual int64_t GetPosition();
35 virtual int64_t GetLength();
36 virtual bool Open(const CURL& url);
37 virtual bool Exists(const CURL& url);
38 virtual int Stat(const CURL& url, struct __stat64* buffer);
39 virtual unsigned int Read(void* lpBuf, int64_t uiBufSize);
40 virtual int Write(const void* lpBuf, int64_t uiBufSize);
41 virtual int64_t Seek(int64_t iFilePosition, int iWhence = SEEK_SET);
44 virtual bool OpenForWrite(const CURL& url, bool bOverWrite = false);