-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrailer.generated.go
69 lines (58 loc) · 1.57 KB
/
trailer.generated.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package fixt11
import (
"github.com/quickfixgo/field"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/tag"
)
//Trailer is the fixt11 Trailer type
type Trailer struct {
*quickfix.Trailer
}
//SetCheckSum sets CheckSum, Tag 10
func (t Trailer) SetCheckSum(v string) {
t.Set(field.NewCheckSum(v))
}
//SetSignature sets Signature, Tag 89
func (t Trailer) SetSignature(v string) {
t.Set(field.NewSignature(v))
}
//SetSignatureLength sets SignatureLength, Tag 93
func (t Trailer) SetSignatureLength(v int) {
t.Set(field.NewSignatureLength(v))
}
//GetCheckSum gets CheckSum, Tag 10
func (t Trailer) GetCheckSum() (v string, err quickfix.MessageRejectError) {
var f field.CheckSumField
if err = t.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSignature gets Signature, Tag 89
func (t Trailer) GetSignature() (v string, err quickfix.MessageRejectError) {
var f field.SignatureField
if err = t.Get(&f); err == nil {
v = f.Value()
}
return
}
//GetSignatureLength gets SignatureLength, Tag 93
func (t Trailer) GetSignatureLength() (v int, err quickfix.MessageRejectError) {
var f field.SignatureLengthField
if err = t.Get(&f); err == nil {
v = f.Value()
}
return
}
//HasCheckSum returns true if CheckSum is present, Tag 10
func (t Trailer) HasCheckSum() bool {
return t.Has(tag.CheckSum)
}
//HasSignature returns true if Signature is present, Tag 89
func (t Trailer) HasSignature() bool {
return t.Has(tag.Signature)
}
//HasSignatureLength returns true if SignatureLength is present, Tag 93
func (t Trailer) HasSignatureLength() bool {
return t.Has(tag.SignatureLength)
}