00001 /* 00002 * This file is part of dvi2bitmap. 00003 * Copyright 1999--2002, Council for the Central Laboratory of the Research Councils 00004 * 00005 * This program is part of the Starlink Software Distribution: see 00006 * http://www.starlink.ac.uk 00007 * 00008 * dvi2bitmap is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * dvi2bitmap is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with dvi2bitmap; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 * The General Public License is distributed along with this 00023 * program in the file LICENCE. 00024 * 00025 * Author: Norman Gray <norman@astro.gla.ac.uk> 00026 * $Id: FileByteStream.h,v 1.2 2003/08/22 14:05:43 norman Exp $ 00027 */ 00028 00029 00030 #ifndef FILE_BYTE_STREAM_HEADER_READ 00031 #define FILE_BYTE_STREAM_HEADER_READ 1 00032 00033 #include <InputByteStream.h> 00034 00035 class FileByteStream : public InputByteStream { 00036 00037 public: 00038 FileByteStream(string& filename, 00039 string tryext="", 00040 bool preload=false) 00041 throw (InputByteStreamError); 00042 ~FileByteStream(); 00043 void seek(int pos) 00044 throw (InputByteStreamError); 00045 00046 private: 00047 int filesize_; 00048 }; 00049 00050 #endif /* FILE_BYTE_STREAM_HEADER_READ */