QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RFileImporter.h
Go to the documentation of this file.
1
20#ifndef RFILEIMPORTER_H
21#define RFILEIMPORTER_H
22
23#include "core_global.h"
24
25#include "RImporter.h"
26
27#include <QString>
28
29#ifndef RDEFAULT_QVARIANTMAP
30#define RDEFAULT_QVARIANTMAP QVariantMap()
31#endif
32
42public:
44 RFileImporter(RDocument& document, RMessageHandler* messageHandler = NULL, RProgressHandler* progressHandler = NULL);
45 virtual ~RFileImporter();
46
51 virtual bool importFile(const QString& fileName, const QString& nameFilter, const QVariantMap& params = RDEFAULT_QVARIANTMAP) = 0;
52};
53
55
56#endif
#define RDEFAULT_QVARIANTMAP
Definition RDocumentInterface.h:41
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Base class for file importers.
Definition RFileImporter.h:41
virtual bool importFile(const QString &fileName, const QString &nameFilter, const QVariantMap &params=RDEFAULT_QVARIANTMAP)=0
Must be implemented by file importers to import the given file into the document.
Base class for importers.
Definition RImporter.h:45
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