ElementProperty

Description

Defines the plugin configuration parameter template. You can rewrite the DefineProperties API of the plugin to define the plugin configuration parameters.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
template<class T>
struct ElementProperty { 
    PropertyType type; 
    std::string name; 
    std::string nickName; 
    std::string desc; 
    T defaultValue; 
    T min; 
    T max; 
}

Parameters

Parameter

Description

type

Data type. For details, see PropertyType.

1
2
3
4
5
6
7
8
9
typedef enum {
    STRING = 0,
    INT,
    UINT,
    FLOAT,
    DOUBLE,
    LONG,
    ULONG
} PropertyType;

name

Configuration item name.

nickname

Configuration item nickname.

desc

Configuration item description.

defaultValue

Default value.

min

Minimum value.

max

Maximum value.