QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
25class RDocument;
26class RFileImporter;
27class RMessageHandler;
29
30#include <QMetaType>
31#include <QString>
32
42public:
44 virtual QStringList getFilterStrings() = 0;
45 virtual int canImport(const QString& fileName, const QString& nameFilter = "") = 0;
46 virtual RFileImporter* instantiate(RDocument& document, RMessageHandler* messageHandler = NULL, RProgressHandler* progressHandler = NULL) = 0;
47};
48
50
51#endif
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Needs to be implemented by RFileImporter implementations to check if the importer is suitable to impo...
Definition RFileImporterFactory.h:41
virtual QStringList getFilterStrings()=0
virtual RFileImporter * instantiate(RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL)=0
virtual ~RFileImporterFactory()
Definition RFileImporterFactory.h:43
virtual int canImport(const QString &fileName, const QString &nameFilter="")=0
Base class for file importers.
Definition RFileImporter.h:41
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMessageHandler.h:33
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RProgressHandler.h:33
#define QCADCORE_EXPORT
Definition core_global.h:10
#define NULL
Definition opennurbs_system.h:256