forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trailer.generated.go
60 lines (49 loc) · 1.45 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
package fix44
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/field"
"github.com/quickfixgo/quickfix/tag"
)
//Trailer is the fix44 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() (f field.CheckSumField, err quickfix.MessageRejectError) {
err = t.Get(&f)
return
}
//GetSignature gets Signature, Tag 89
func (t Trailer) GetSignature() (f field.SignatureField, err quickfix.MessageRejectError) {
err = t.Get(&f)
return
}
//GetSignatureLength gets SignatureLength, Tag 93
func (t Trailer) GetSignatureLength() (f field.SignatureLengthField, err quickfix.MessageRejectError) {
err = t.Get(&f)
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)
}