/**************************************************************************** ** ** This file is part of the LibreCAD project, a 2D CAD program ** ** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl) ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved. ** ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file gpl-2.0.txt included in the ** packaging of this file. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ** ** This copyright notice MUST APPEAR in all copies of the script! ** **********************************************************************/ /***************************************************************************** ** $Id: test_creationclass.h 8865 2008-02-04 18:54:02Z andrew $ ** ** This is part of the dxflib library ** Copyright (C) 2001 Andrew Mustun ** ** This file may be distributed and/or modified under the terms of the ** it under the terms of the GNU Library General Public License as ** published by the Free Software Foundation. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU Library General Public License for more details. ** ** You should have received a copy of the GNU Library General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ******************************************************************************/ #ifndef TEST_CREATIONCLASS_H #define TEST_CREATIONCLASS_H #include "dl_creationadapter.h" /** * This class takes care of the entities read from the file. * Usually such a class would probably store the entities. * this one just prints some information about them to stdout. * * @author Andrew Mustun */ class Test_CreationClass : public DL_CreationAdapter { public: Test_CreationClass(); virtual void addLayer(const DL_LayerData& data); virtual void addPoint(const DL_PointData& data); virtual void addLine(const DL_LineData& data); virtual void addArc(const DL_ArcData& data); virtual void addCircle(const DL_CircleData& data); virtual void addPolyline(const DL_PolylineData& data); virtual void addVertex(const DL_VertexData& data); virtual void add3dFace(const DL_3dFaceData& data); void printAttributes(); }; #endif