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 {
24   public:
dwgReader15(std::ifstream * stream,dwgR * p)25     dwgReader15( std::ifstream *stream, dwgR *p ): dwgReader( stream, p ) { }
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     {
35       bool ret = true;
36       ret = dwgReader::readDwgEntities( intfa, fileBuf );
37       return ret;
38     }
readDwgObjects(DRW_Interface & intfa)39     bool readDwgObjects( DRW_Interface &intfa )
40     {
41       bool ret = true;
42       ret = dwgReader::readDwgObjects( intfa, fileBuf );
43       return ret;
44     }
45 //    bool readDwgEntity(objHandle& obj, DRW_Interface& intfa);
46 };
47 
48 
49 #endif // DWGREADER15_H
50