1 /****************************************************************************** 2 ** libDXFrw - Library to read/write DXF files (ascii & binary) ** 3 ** ** 4 ** Copyright (C) 2011-2015 José F. Soriano, rallazz@gmail.com ** 5 ** ** 6 ** This library is free software, licensed under the terms of the GNU ** 7 ** General Public License as published by the Free Software Foundation, ** 8 ** either version 2 of the License, or (at your option) any later version. ** 9 ** You should have received a copy of the GNU General Public License ** 10 ** along with this program. If not, see <http://www.gnu.org/licenses/>. ** 11 ******************************************************************************/ 12 13 #ifndef DWGREADER27_H 14 #define DWGREADER27_H 15 16 #include <map> 17 #include <list> 18 #include "drw_textcodec.h" 19 #include "dwgbuffer.h" 20 #include "dwgreader18.h" 21 22 class dwgReader27 : public dwgReader18 23 { 24 public: dwgReader27(std::ifstream * stream,dwgR * p)25 dwgReader27( std::ifstream *stream, dwgR *p ): dwgReader18( stream, p ) { } 26 bool readFileHeader(); 27 bool readDwgHeader( DRW_Header &hdr ); 28 bool readDwgClasses(); 29 // bool readDwgHandles(){return false;} 30 // bool readDwgTables(){return false;} readDwgBlocks(DRW_Interface & intfa)31 bool readDwgBlocks( DRW_Interface &intfa ) 32 { 33 bool ret = true; 34 dwgBuffer dataBuf( objData, uncompSize, &decoder ); 35 ret = dwgReader::readDwgBlocks( intfa, &dataBuf ); 36 return ret; 37 } readDwgEntities(DRW_Interface & intfa)38 virtual bool readDwgEntities( DRW_Interface &intfa ) 39 { 40 bool ret = true; 41 dwgBuffer dataBuf( objData, uncompSize, &decoder ); 42 ret = dwgReader::readDwgEntities( intfa, &dataBuf ); 43 return ret; 44 } readDwgObjects(DRW_Interface & intfa)45 virtual bool readDwgObjects( DRW_Interface &intfa ) 46 { 47 bool ret = true; 48 dwgBuffer dataBuf( objData, uncompSize, &decoder ); 49 ret = dwgReader::readDwgObjects( intfa, &dataBuf ); 50 return ret; 51 } 52 // bool readDwgEntity(objHandle& obj, DRW_Interface& intfa){ 53 // DRW_UNUSED(obj); 54 // DRW_UNUSED(intfa); 55 // return false;} 56 }; 57 58 #endif // DWGREADER21_H 59