Skip to content
Permalink
Browse files

doxygen, init in header

  • Loading branch information
3nids committed Feb 12, 2018
1 parent 53f4464 commit 2a7aeafb75ce226a17b0b35df26907ef13689c0f
Showing with 28 additions and 15 deletions.
  1. +11 −5 python/core/dxf/qgsdxfexport.sip.in
  2. +17 −10 src/core/dxf/qgsdxfexport.h
@@ -23,13 +23,19 @@ class QgsDxfExport

struct DxfLayer
{
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 );
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 );

QgsVectorLayer *layer() const;
int layerOutputAttributeIndex() const;
QgsVectorLayer *layer() const;
%Docstring
Return the layer
%End

int layerOutputAttributeIndex() const;
%Docstring
Return the attribute index used to split into multiple layers.
The attribute value is used for layer names.
%End

QgsVectorLayer *mLayer;
int mLayerOutputAttributeIndex;
};

enum SymbologyExport
@@ -58,16 +58,23 @@ class CORE_EXPORT QgsDxfExport
*/
struct DxfLayer
{
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
: mLayer( vl )
, mLayerOutputAttributeIndex( layerOutputAttributeIndex )
{}

QgsVectorLayer *layer() const {return mLayer;}
int layerOutputAttributeIndex() const {return mLayerOutputAttributeIndex;}

QgsVectorLayer *mLayer;
int mLayerOutputAttributeIndex;
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
: mLayer( vl )
, mLayerOutputAttributeIndex( layerOutputAttributeIndex )
{}

//! Return the layer
QgsVectorLayer *layer() const {return mLayer;}

/**
* Return the attribute index used to split into multiple layers.
* The attribute value is used for layer names.
*/
int layerOutputAttributeIndex() const {return mLayerOutputAttributeIndex;}

private:
QgsVectorLayer *mLayer = nullptr;
int mLayerOutputAttributeIndex = -1;
};

enum SymbologyExport

0 comments on commit 2a7aeaf

Please sign in to comment.
You can’t perform that action at this time.