Skip to content

Commit 2a7aeaf

Browse files
committedFeb 12, 2018
doxygen, init in header
1 parent 53f4464 commit 2a7aeaf

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed
 

‎python/core/dxf/qgsdxfexport.sip.in

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,19 @@ class QgsDxfExport
2323

2424
struct DxfLayer
2525
{
26-
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 );
26+
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 );
2727

28-
QgsVectorLayer *layer() const;
29-
int layerOutputAttributeIndex() const;
28+
QgsVectorLayer *layer() const;
29+
%Docstring
30+
Return the layer
31+
%End
32+
33+
int layerOutputAttributeIndex() const;
34+
%Docstring
35+
Return the attribute index used to split into multiple layers.
36+
The attribute value is used for layer names.
37+
%End
3038

31-
QgsVectorLayer *mLayer;
32-
int mLayerOutputAttributeIndex;
3339
};
3440

3541
enum SymbologyExport

‎src/core/dxf/qgsdxfexport.h

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,23 @@ class CORE_EXPORT QgsDxfExport
5858
*/
5959
struct DxfLayer
6060
{
61-
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
62-
: mLayer( vl )
63-
, mLayerOutputAttributeIndex( layerOutputAttributeIndex )
64-
{}
65-
66-
QgsVectorLayer *layer() const {return mLayer;}
67-
int layerOutputAttributeIndex() const {return mLayerOutputAttributeIndex;}
68-
69-
QgsVectorLayer *mLayer;
70-
int mLayerOutputAttributeIndex;
61+
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
62+
: mLayer( vl )
63+
, mLayerOutputAttributeIndex( layerOutputAttributeIndex )
64+
{}
65+
66+
//! Return the layer
67+
QgsVectorLayer *layer() const {return mLayer;}
68+
69+
/**
70+
* Return the attribute index used to split into multiple layers.
71+
* The attribute value is used for layer names.
72+
*/
73+
int layerOutputAttributeIndex() const {return mLayerOutputAttributeIndex;}
74+
75+
private:
76+
QgsVectorLayer *mLayer = nullptr;
77+
int mLayerOutputAttributeIndex = -1;
7178
};
7279

7380
enum SymbologyExport

0 commit comments

Comments
 (0)
Please sign in to comment.