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 DWGREADER15_H 14 #define DWGREADER15_H 15 16 #include <map> 17 #include <list> 18 #include "drw_textcodec.h" 19 #include "dwgbuffer.h" 20 #include "dwgreader.h" 21 22 class dwgReader15 : public dwgReader { 23 public: dwgReader15(std::ifstream * stream,dwgR * p)24 dwgReader15(std::ifstream *stream, dwgR *p):dwgReader(stream, p){ } 25 bool readMetaData() override; 26 bool readFileHeader() override; 27 bool readDwgHeader(DRW_Header& hdr) override; 28 bool readDwgClasses() override; 29 bool readDwgHandles() override; 30 bool readDwgTables(DRW_Header& hdr) override; 31 bool readDwgBlocks(DRW_Interface& intfa) override; readDwgEntities(DRW_Interface & intfa)32 bool readDwgEntities(DRW_Interface& intfa) override { 33 bool ret = true; 34 ret = dwgReader::readDwgEntities(intfa, fileBuf.get()); 35 return ret; 36 } readDwgObjects(DRW_Interface & intfa)37 bool readDwgObjects(DRW_Interface& intfa) override { 38 bool ret = true; 39 ret = dwgReader::readDwgObjects(intfa, fileBuf.get()); 40 return ret; 41 } 42 // bool readDwgEntity(objHandle& obj, DRW_Interface& intfa); 43 }; 44 45 46 #endif // DWGREADER15_H 47