00001 /* 00002 * $Id: RawStreamInterface.h 562 2007-12-02 08:04:16Z mindstorm2600 $ 00003 * 00004 * X-VR2 00005 * 00006 * Copyright (C) Juan V. Guerrero 2007 00007 * 00008 * Juan V. Guerrero <mindstorm2600@users.sourceforge.net> 00009 * 00010 * This program is free software, distributed under the terms of 00011 * the GNU General Public License Version 2. See the LICENSE file 00012 * at the top of the source tree. 00013 */ 00014 #ifndef __XVR2_RAW_STREAM_INTERFACE_H__ 00015 #define __XVR2_RAW_STREAM_INTERFACE_H__ 00016 #include<xvr2/StreamInterface.h> 00017 00018 namespace xvr2 { 00019 class RawStreamInterface : public virtual StreamInterface { 00020 protected: 00021 int _fd; 00022 bool _a_close; 00023 bool _is_opened; 00024 RawStreamInterface(){}; 00025 public: 00026 virtual FileSizeT size(); 00027 virtual FileOffsetT tell(); 00028 virtual bool opened(); 00029 virtual bool ready(int t = 100) = 0; 00030 }; 00031 } 00032 00033 #endif 00034