3
// This code is released under the GPL (GNU Public License) version 2.0.
4
// For full details, see the file GPL.txt included with this source code.
8
// This means, in simple terms, that you are free to use this code for any open-source or
9
// public domain project. You may NOT use this source code as part of a commercial application.
10
// It may be included, in binary form and bearing a GPL notice, along with commercial
11
// applications, but the code shall not be compiled directly into a closed-source,
12
// commercial application.
14
// This code is based on two other products:
15
// DXFLIB (http://www.ribbonsoft.com/dxflib.html)
16
// This is a library for reading DXF files, also GPL.
17
// MAPWINGIS (http://www.mapwindow.org)
18
// This is a library for many general-purpose GIS and mapping applications. It's
19
// used for the Shapefile functionality. This software is also open source, this one MPL.
21
// Questions/Comments/Thoughts?
22
// http://www.happysquirrel.com/index.php?feature=hs_questions
25
// Christopher Michaelis
27
// getInsertions.cpp: The class which retrieves the block insertions from the DXF file
30
#include "getInsertions.h"
32
InsertRetrClass::InsertRetrClass()
34
Names = new string[MaxInserts];
35
XVals = new double[MaxInserts];
36
YVals = new double[MaxInserts];
41
InsertRetrClass::~InsertRetrClass()
60
void InsertRetrClass::addInsert( const DL_InsertData &data )
62
if ( countInserts < MaxInserts )
64
Names[countInserts] = data.name;
65
XVals[countInserts] = data.ipx;
66
YVals[countInserts] = data.ipy;