-
Notifications
You must be signed in to change notification settings - Fork 0
/
parametertype_enum.go
35 lines (28 loc) · 971 Bytes
/
parametertype_enum.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Automatically generated by github.com/fardream/gen-gmsk
// enum for MSKparametertype_enum/ParameterType
package gmsk
// #include <mosek.h>
import "C"
import "strconv"
// ParameterType is MSKparametertype_enum.
//
// Parameter type
type ParameterType uint32
const (
PAR_INVALID_TYPE ParameterType = C.MSK_PAR_INVALID_TYPE // Not a valid parameter.
PAR_DOU_TYPE ParameterType = C.MSK_PAR_DOU_TYPE // Is a double parameter.
PAR_INT_TYPE ParameterType = C.MSK_PAR_INT_TYPE // Is an integer parameter.
PAR_STR_TYPE ParameterType = C.MSK_PAR_STR_TYPE // Is a string parameter.
)
var _ParameterType_map = map[ParameterType]string{
PAR_INVALID_TYPE: "PAR_INVALID_TYPE",
PAR_DOU_TYPE: "PAR_DOU_TYPE",
PAR_INT_TYPE: "PAR_INT_TYPE",
PAR_STR_TYPE: "PAR_STR_TYPE",
}
func (e ParameterType) String() string {
if v, ok := _ParameterType_map[e]; ok {
return v
}
return "ParameterType(" + strconv.FormatInt(int64(e), 10) + ")"
}