doxygen, init in header

This commit is contained in:
Denis Rouzaud 2018-02-12 11:29:41 -04:00
parent 53f4464b53
commit 2a7aeafb75
2 changed files with 26 additions and 13 deletions

View File

@ -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

View File

@ -58,16 +58,23 @@ class CORE_EXPORT QgsDxfExport
*/
struct DxfLayer
{
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
: mLayer( vl )
, mLayerOutputAttributeIndex( layerOutputAttributeIndex )
{}
DxfLayer( QgsVectorLayer *vl, int layerOutputAttributeIndex = -1 )
: mLayer( vl )
, mLayerOutputAttributeIndex( layerOutputAttributeIndex )
{}
QgsVectorLayer *layer() const {return mLayer;}
int layerOutputAttributeIndex() const {return mLayerOutputAttributeIndex;}
//! Return the layer
QgsVectorLayer *layer() const {return mLayer;}
QgsVectorLayer *mLayer;
int mLayerOutputAttributeIndex;
/**
* 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