1 /****************************************************************************
2 ** $Id: dl_creationadapter.h 2398 2005-06-06 18:12:14Z andrew $
4 ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
6 ** This file is part of the dxflib project.
8 ** This file may be distributed and/or modified under the terms of the
9 ** GNU General Public License version 2 as published by the Free Software
10 ** Foundation and appearing in the file LICENSE.GPL included in the
11 ** packaging of this file.
13 ** Licensees holding valid dxflib Professional Edition licenses may use
14 ** this file in accordance with the dxflib Commercial License
15 ** Agreement provided with the Software.
17 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 ** See http://www.ribbonsoft.com for further details.
22 ** Contact info@ribbonsoft.com if any conditions of this licensing are
25 **********************************************************************/
27 #ifndef DL_CREATIONADAPTER_H
28 #define DL_CREATIONADAPTER_H
30 #include "dl_creationinterface.h"
33 * An abstract adapter class for receiving DXF events when a DXF file is being read.
34 * The methods in this class are empty. This class exists as convenience for creating
37 * @author Andrew Mustun
39 class DL_CreationAdapter : public DL_CreationInterface {
41 DL_CreationAdapter() {}
42 virtual ~DL_CreationAdapter() {}
43 virtual void addLayer(const DL_LayerData&) {}
44 virtual void addBlock(const DL_BlockData&) {}
45 virtual void endBlock() {}
46 virtual void addPoint(const DL_PointData&) {}
47 virtual void addLine(const DL_LineData&) {}
48 virtual void addArc(const DL_ArcData&) {}
49 virtual void addCircle(const DL_CircleData&) {}
50 virtual void addEllipse(const DL_EllipseData&) {}
52 virtual void addPolyline(const DL_PolylineData&) {}
53 virtual void addVertex(const DL_VertexData&) {}
55 virtual void addSpline(const DL_SplineData&) {}
56 virtual void addControlPoint(const DL_ControlPointData&) {}
57 virtual void addKnot(const DL_KnotData&) {}
59 virtual void addInsert(const DL_InsertData&) {}
61 virtual void addMText(const DL_MTextData&) {}
62 virtual void addMTextChunk(const char*) {}
63 virtual void addText(const DL_TextData&) {}
65 virtual void addDimAlign(const DL_DimensionData&,
66 const DL_DimAlignedData&) {}
67 virtual void addDimLinear(const DL_DimensionData&,
68 const DL_DimLinearData&) {}
69 virtual void addDimRadial(const DL_DimensionData&,
70 const DL_DimRadialData&) {}
71 virtual void addDimDiametric(const DL_DimensionData&,
72 const DL_DimDiametricData&) {}
73 virtual void addDimAngular(const DL_DimensionData&,
74 const DL_DimAngularData&) {}
75 virtual void addDimAngular3P(const DL_DimensionData&,
76 const DL_DimAngular3PData&) {}
77 virtual void addLeader(const DL_LeaderData&) {}
78 virtual void addLeaderVertex(const DL_LeaderVertexData&) {}
80 virtual void addHatch(const DL_HatchData&) {}
82 virtual void addTrace(const DL_TraceData&) {}
83 virtual void addSolid(const DL_SolidData&) {}
85 virtual void addImage(const DL_ImageData&) {}
86 virtual void linkImage(const DL_ImageDefData&) {}
87 virtual void addHatchLoop(const DL_HatchLoopData&) {}
88 virtual void addHatchEdge(const DL_HatchEdgeData&) {}
89 virtual void endEntity() {}
90 virtual void setVariableVector(const char*,
91 double, double, double, int) {}
92 virtual void setVariableString(const char*, const char*, int) {}
93 virtual void setVariableInt(const char*, int, int) {}
94 virtual void setVariableDouble(const char*, double, int) {}
95 virtual void endSequence() {}