QCAD Application Framework
CAD Application Development and Automation.
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RImporter.h
Go to the documentation of this file.
1
#ifndef RIMPORTER_H
2
#define RIMPORTER_H
3
4
#include "
RTransaction.h
"
5
6
class
RDocument
;
7
class
REntity
;
8
class
RVector
;
9
class
RMessageHandler
;
10
class
RProgressHandler
;
11
24
class
RImporter
{
25
public
:
26
RImporter
();
27
RImporter
(
RDocument
&
document
,
RMessageHandler
*
messageHandler
= NULL,
RProgressHandler
*
progressHandler
= NULL);
28
virtual
~RImporter
();
29
30
virtual
void
startImport
();
31
virtual
void
endImport
();
32
33
virtual
void
importObject
(QSharedPointer<RObject>
object
);
34
35
virtual
void
setCurrentBlockId
(
RBlock::Id
id
);
36
virtual
RBlock::Id
getCurrentBlockId
();
37
38
RDocument
&
getDocument
();
39
void
setDocument
(
RDocument
* d);
40
41
protected
:
42
RDocument
*
document
;
43
RMessageHandler
*
messageHandler
;
44
RProgressHandler
*
progressHandler
;
45
RTransaction
transaction
;
46
RBlock::Id
blockId
;
47
};
48
49
Q_DECLARE_METATYPE
(
RImporter
*)
50
51
#endif
src
core
RImporter.h
Generated on Tue Jun 26 2012 18:41:07 for QCAD Application Framework by
1.8.1.1