|
hipp
1.0
|
00001 /* 00002 Copyright 2011 Certec, Lund University, Sweden 00003 00004 This file is part of HIPP. 00005 00006 HIPP is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 HIPP is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with HIPP. If not, see <http://www.gnu.org/licenses/>. 00018 00019 */ 00020 00021 #ifndef __ISTREAMINPUTSTREAM_H__ 00022 #define __ISTREAMINPUTSTREAM_H__ 00023 00024 //#include <H3D/H3DApi.h> 00025 00026 #include <xercesc/util/BinInputStream.hpp> 00027 #include <iostream> 00028 00029 using namespace std; 00030 XERCES_CPP_NAMESPACE_USE 00031 00032 //namespace H3D { 00033 // namespace X3D { 00036 class IStreamInputStream : public BinInputStream { 00037 public : 00039 IStreamInputStream ( istream &_is ) : is( _is ), total_count( 0 ) {} 00040 00041 virtual XMLFilePos curPos() const; 00042 00043 virtual XMLSize_t readBytes( XMLByte* const toFill, 00044 const XMLSize_t maxToRead ); 00045 00046 virtual const XMLCh* getContentType() const { 00047 return 0; 00048 } 00049 00050 protected : 00051 //BinFileInputStream(const BinFileInputStream&); 00052 // BinFileInputStream& operator=(const BinFileInputStream&); 00053 00054 istream &is; 00055 unsigned int total_count; 00056 00057 }; 00058 // } 00059 //} 00060 00061 #endif
1.7.5.1