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::istream * stream,dwgR * p)24     dwgReader15(std::istream *stream, dwgR *p):dwgReader(stream, p){ }
~dwgReader15()25     virtual ~dwgReader15() {}
26     bool readMetaData();
27     bool readFileHeader();
28     bool readDwgHeader(DRW_Header& hdr);
29     bool readDwgClasses();
30     bool readDwgHandles();
31     bool readDwgTables(DRW_Header& hdr);
32     bool readDwgBlocks(DRW_Interface& intfa);
readDwgEntities(DRW_Interface & intfa)33     bool readDwgEntities(DRW_Interface& intfa){
34         bool ret = true;
35         ret = dwgReader::readDwgEntities(intfa, fileBuf);
36         return ret;
37     }
readDwgObjects(DRW_Interface & intfa)38     bool readDwgObjects(DRW_Interface& intfa){
39         bool ret = true;
40         ret = dwgReader::readDwgObjects(intfa, fileBuf);
41         return ret;
42     }
43 //    bool readDwgEntity(objHandle& obj, DRW_Interface& intfa);
44 };
45 
46 
47 #endif // DWGREADER15_H
48