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
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RMessageHandler.h:33
Needs to be implemented by RFileImporter implementations to check if the importer is suitable to impo...
Definition: RFileImporterFactory.h:41
#define QCADCORE_EXPORT
Definition: core_global.h:10
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RFileImporter.h:37
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RProgressHandler.h:33