QCAD
Open Source 2D CAD
RFileImporterFactory.h
Go to the documentation of this file.
1 
20 #ifndef RFILEIMPORTERFACTORY_H
21 #define RFILEIMPORTERFACTORY_H
22 
23 #include "core_global.h"
24 
25 class RDocument;
26 class RFileImporter;
27 class RMessageHandler;
28 class RProgressHandler;
29 
30 #include <QMetaType>
31 #include <QString>
32 
42 public:
43  virtual QStringList getFilterStrings() = 0;
44  virtual int canImport(const QString& fileName, const QString& nameFilter = "") = 0;
45  virtual RFileImporter* instantiate(RDocument& document, RMessageHandler* messageHandler = NULL, RProgressHandler* progressHandler = NULL) = 0;
46 };
47 
49 
50 #endif
RMessageHandler
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RMessageHandler.h:33
RProgressHandler
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RProgressHandler.h:33
RFileImporterFactory::canImport
virtual int canImport(const QString &fileName, const QString &nameFilter="")=0
RFileImporter
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RFileImporter.h:37
RFileImporterFactory
Needs to be implemented by RFileImporter implementations to check if the importer is suitable to impo...
Definition: RFileImporterFactory.h:41
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
core_global.h
RDocument
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
RFileImporterFactory::getFilterStrings
virtual QStringList getFilterStrings()=0
RFileImporterFactory::instantiate
virtual RFileImporter * instantiate(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)=0
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10