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