2 * @file test_creationclass.h
5 /*****************************************************************************
6 ** $Id: test_creationclass.h 219 2004-01-07 23:08:40Z andrew $
8 ** This is part of the dxflib library
9 ** Copyright (C) 2001 Andrew Mustun
11 ** This program is free software; you can redistribute it and/or modify
12 ** it under the terms of the GNU Library General Public License as
13 ** published by the Free Software Foundation.
15 ** This program is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ** GNU Library General Public License for more details.
20 ** You should have received a copy of the GNU Library General Public License
21 ** along with this program; if not, write to the Free Software
22 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 ******************************************************************************/
25 #ifndef TEST_CREATIONCLASS_H
26 #define TEST_CREATIONCLASS_H
28 #include "dl_creationadapter.h"
33 * This class takes care of the entities read from the file.
34 * Usually such a class would probably store the entities.
35 * this one just prints some information about them to stdout.
37 * @author Andrew Mustun
39 class Test_CreationClass : public DL_CreationAdapter {
43 virtual void addLayer(const DL_LayerData& data);
44 virtual void addPoint(const DL_PointData& data);
45 virtual void addLine(const DL_LineData& data);
46 virtual void addArc(const DL_ArcData& data);
47 virtual void addCircle(const DL_CircleData& data);
48 virtual void addPolyline(const DL_PolylineData& data);
49 virtual void addVertex(const DL_VertexData& data);
51 void printAttributes();