QCAD
Open Source 2D CAD
RFileImporter Class Referenceabstract

Copyright (c) 2011-2015 by Andrew Mustun. More...

#include <RFileImporter.h>

Inheritance diagram for RFileImporter:
RImporter RDxfImporter

Public Member Functions

virtual bool importFile (const QString &fileName, const QString &nameFilter)=0
 Must be implemented by file importers to import the given file into the document. More...
 
 RFileImporter ()
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 
 RFileImporter (RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)
 
virtual ~RFileImporter ()
 
- Public Member Functions inherited from RImporter
virtual void endImport ()
 Ends the import. More...
 
virtual RBlock::Id getCurrentBlockId ()
 
RDocumentgetDocument ()
 
virtual void importObject (RObject *object)
 Provided for script importers as importObjectP will loose the object ID. More...
 
virtual void importObjectP (QSharedPointer< RObject > object)
 Imports an entity into the document. More...
 
 RImporter ()
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 
 RImporter (RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)
 
virtual void setCurrentBlockId (RBlock::Id id)
 
void setDocument (RDocument *d)
 
void setKnownVariable (RS::KnownVariable key, const QVariant &value)
 
void setKnownVariable (RS::KnownVariable key, const RVector &value)
 
virtual void startImport ()
 Starts the import. More...
 
virtual ~RImporter ()
 

Additional Inherited Members

- Protected Attributes inherited from RImporter
RBlock::Id blockId
 
RDocumentdocument
 
RMessageHandlermessageHandler
 
RProgressHandlerprogressHandler
 
RTransaction transaction
 

Detailed Description

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD 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 QCAD. Base class for file importers.

File importers import files of a specific format into an RDocument.

Scriptable:
This class is available in script environments.

Constructor & Destructor Documentation

RFileImporter::RFileImporter ( )

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD 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 QCAD.

RFileImporter::RFileImporter ( RDocument document,
RMessageHandler messageHandler = NULL,
RProgressHandler progressHandler = NULL 
)
RFileImporter::~RFileImporter ( )
virtual

Member Function Documentation

virtual bool RFileImporter::importFile ( const QString &  fileName,
const QString &  nameFilter 
)
pure virtual

Must be implemented by file importers to import the given file into the document.

Implemented in RDxfImporter.


The documentation for this class was generated from the following files: