Skip to content

Commit e99736a

Browse files
author
Chris Busbey
committed
generated code
0 parents  commit e99736a

File tree

110 files changed

+507673
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+507673
-0
lines changed

adjustedpositionreport/AdjustedPositionReport.generated.go

Lines changed: 3096 additions & 0 deletions
Large diffs are not rendered by default.

advertisement/Advertisement.generated.go

Lines changed: 5575 additions & 0 deletions
Large diffs are not rendered by default.

allocationinstruction/AllocationInstruction.generated.go

Lines changed: 9389 additions & 0 deletions
Large diffs are not rendered by default.

allocationinstructionack/AllocationInstructionAck.generated.go

Lines changed: 988 additions & 0 deletions
Large diffs are not rendered by default.

allocationinstructionalert/AllocationInstructionAlert.generated.go

Lines changed: 9287 additions & 0 deletions
Large diffs are not rendered by default.

allocationreport/AllocationReport.generated.go

Lines changed: 9486 additions & 0 deletions
Large diffs are not rendered by default.

allocationreportack/AllocationReportAck.generated.go

Lines changed: 1082 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
package applicationmessagereport
2+
3+
import (
4+
"github.com/quickfixgo/enum"
5+
"github.com/quickfixgo/field"
6+
"github.com/quickfixgo/fixt11"
7+
"github.com/quickfixgo/quickfix"
8+
"github.com/quickfixgo/tag"
9+
)
10+
11+
//ApplicationMessageReport is the fix50sp2 ApplicationMessageReport type, MsgType = BY
12+
type ApplicationMessageReport struct {
13+
fixt11.Header
14+
*quickfix.Body
15+
fixt11.Trailer
16+
Message *quickfix.Message
17+
}
18+
19+
//FromMessage creates a ApplicationMessageReport from a quickfix.Message instance
20+
func FromMessage(m *quickfix.Message) ApplicationMessageReport {
21+
return ApplicationMessageReport{
22+
Header: fixt11.Header{&m.Header},
23+
Body: &m.Body,
24+
Trailer: fixt11.Trailer{&m.Trailer},
25+
Message: m,
26+
}
27+
}
28+
29+
//ToMessage returns a quickfix.Message instance
30+
func (m ApplicationMessageReport) ToMessage() *quickfix.Message {
31+
return m.Message
32+
}
33+
34+
//New returns a ApplicationMessageReport initialized with the required fields for ApplicationMessageReport
35+
func New(applreportid field.ApplReportIDField, applreporttype field.ApplReportTypeField) (m ApplicationMessageReport) {
36+
m.Message = quickfix.NewMessage()
37+
m.Header = fixt11.NewHeader(&m.Message.Header)
38+
m.Body = &m.Message.Body
39+
m.Trailer.Trailer = &m.Message.Trailer
40+
41+
m.Header.Set(field.NewMsgType("BY"))
42+
m.Set(applreportid)
43+
m.Set(applreporttype)
44+
45+
return
46+
}
47+
48+
//A RouteOut is the callback type that should be implemented for routing Message
49+
type RouteOut func(msg ApplicationMessageReport, sessionID quickfix.SessionID) quickfix.MessageRejectError
50+
51+
//Route returns the beginstring, message type, and MessageRoute for this Message type
52+
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
53+
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
54+
return router(FromMessage(msg), sessionID)
55+
}
56+
return "9", "BY", r
57+
}
58+
59+
//SetText sets Text, Tag 58
60+
func (m ApplicationMessageReport) SetText(v string) {
61+
m.Set(field.NewText(v))
62+
}
63+
64+
//SetEncodedTextLen sets EncodedTextLen, Tag 354
65+
func (m ApplicationMessageReport) SetEncodedTextLen(v int) {
66+
m.Set(field.NewEncodedTextLen(v))
67+
}
68+
69+
//SetEncodedText sets EncodedText, Tag 355
70+
func (m ApplicationMessageReport) SetEncodedText(v string) {
71+
m.Set(field.NewEncodedText(v))
72+
}
73+
74+
//SetApplReqID sets ApplReqID, Tag 1346
75+
func (m ApplicationMessageReport) SetApplReqID(v string) {
76+
m.Set(field.NewApplReqID(v))
77+
}
78+
79+
//SetNoApplIDs sets NoApplIDs, Tag 1351
80+
func (m ApplicationMessageReport) SetNoApplIDs(f NoApplIDsRepeatingGroup) {
81+
m.SetGroup(f)
82+
}
83+
84+
//SetApplReportID sets ApplReportID, Tag 1356
85+
func (m ApplicationMessageReport) SetApplReportID(v string) {
86+
m.Set(field.NewApplReportID(v))
87+
}
88+
89+
//SetApplReportType sets ApplReportType, Tag 1426
90+
func (m ApplicationMessageReport) SetApplReportType(v enum.ApplReportType) {
91+
m.Set(field.NewApplReportType(v))
92+
}
93+
94+
//GetText gets Text, Tag 58
95+
func (m ApplicationMessageReport) GetText() (v string, err quickfix.MessageRejectError) {
96+
var f field.TextField
97+
if err = m.Get(&f); err == nil {
98+
v = f.Value()
99+
}
100+
return
101+
}
102+
103+
//GetEncodedTextLen gets EncodedTextLen, Tag 354
104+
func (m ApplicationMessageReport) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
105+
var f field.EncodedTextLenField
106+
if err = m.Get(&f); err == nil {
107+
v = f.Value()
108+
}
109+
return
110+
}
111+
112+
//GetEncodedText gets EncodedText, Tag 355
113+
func (m ApplicationMessageReport) GetEncodedText() (v string, err quickfix.MessageRejectError) {
114+
var f field.EncodedTextField
115+
if err = m.Get(&f); err == nil {
116+
v = f.Value()
117+
}
118+
return
119+
}
120+
121+
//GetApplReqID gets ApplReqID, Tag 1346
122+
func (m ApplicationMessageReport) GetApplReqID() (v string, err quickfix.MessageRejectError) {
123+
var f field.ApplReqIDField
124+
if err = m.Get(&f); err == nil {
125+
v = f.Value()
126+
}
127+
return
128+
}
129+
130+
//GetNoApplIDs gets NoApplIDs, Tag 1351
131+
func (m ApplicationMessageReport) GetNoApplIDs() (NoApplIDsRepeatingGroup, quickfix.MessageRejectError) {
132+
f := NewNoApplIDsRepeatingGroup()
133+
err := m.GetGroup(f)
134+
return f, err
135+
}
136+
137+
//GetApplReportID gets ApplReportID, Tag 1356
138+
func (m ApplicationMessageReport) GetApplReportID() (v string, err quickfix.MessageRejectError) {
139+
var f field.ApplReportIDField
140+
if err = m.Get(&f); err == nil {
141+
v = f.Value()
142+
}
143+
return
144+
}
145+
146+
//GetApplReportType gets ApplReportType, Tag 1426
147+
func (m ApplicationMessageReport) GetApplReportType() (v enum.ApplReportType, err quickfix.MessageRejectError) {
148+
var f field.ApplReportTypeField
149+
if err = m.Get(&f); err == nil {
150+
v = f.Value()
151+
}
152+
return
153+
}
154+
155+
//HasText returns true if Text is present, Tag 58
156+
func (m ApplicationMessageReport) HasText() bool {
157+
return m.Has(tag.Text)
158+
}
159+
160+
//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354
161+
func (m ApplicationMessageReport) HasEncodedTextLen() bool {
162+
return m.Has(tag.EncodedTextLen)
163+
}
164+
165+
//HasEncodedText returns true if EncodedText is present, Tag 355
166+
func (m ApplicationMessageReport) HasEncodedText() bool {
167+
return m.Has(tag.EncodedText)
168+
}
169+
170+
//HasApplReqID returns true if ApplReqID is present, Tag 1346
171+
func (m ApplicationMessageReport) HasApplReqID() bool {
172+
return m.Has(tag.ApplReqID)
173+
}
174+
175+
//HasNoApplIDs returns true if NoApplIDs is present, Tag 1351
176+
func (m ApplicationMessageReport) HasNoApplIDs() bool {
177+
return m.Has(tag.NoApplIDs)
178+
}
179+
180+
//HasApplReportID returns true if ApplReportID is present, Tag 1356
181+
func (m ApplicationMessageReport) HasApplReportID() bool {
182+
return m.Has(tag.ApplReportID)
183+
}
184+
185+
//HasApplReportType returns true if ApplReportType is present, Tag 1426
186+
func (m ApplicationMessageReport) HasApplReportType() bool {
187+
return m.Has(tag.ApplReportType)
188+
}
189+
190+
//NoApplIDs is a repeating group element, Tag 1351
191+
type NoApplIDs struct {
192+
*quickfix.Group
193+
}
194+
195+
//SetRefApplID sets RefApplID, Tag 1355
196+
func (m NoApplIDs) SetRefApplID(v string) {
197+
m.Set(field.NewRefApplID(v))
198+
}
199+
200+
//SetApplNewSeqNum sets ApplNewSeqNum, Tag 1399
201+
func (m NoApplIDs) SetApplNewSeqNum(v int) {
202+
m.Set(field.NewApplNewSeqNum(v))
203+
}
204+
205+
//SetRefApplLastSeqNum sets RefApplLastSeqNum, Tag 1357
206+
func (m NoApplIDs) SetRefApplLastSeqNum(v int) {
207+
m.Set(field.NewRefApplLastSeqNum(v))
208+
}
209+
210+
//GetRefApplID gets RefApplID, Tag 1355
211+
func (m NoApplIDs) GetRefApplID() (v string, err quickfix.MessageRejectError) {
212+
var f field.RefApplIDField
213+
if err = m.Get(&f); err == nil {
214+
v = f.Value()
215+
}
216+
return
217+
}
218+
219+
//GetApplNewSeqNum gets ApplNewSeqNum, Tag 1399
220+
func (m NoApplIDs) GetApplNewSeqNum() (v int, err quickfix.MessageRejectError) {
221+
var f field.ApplNewSeqNumField
222+
if err = m.Get(&f); err == nil {
223+
v = f.Value()
224+
}
225+
return
226+
}
227+
228+
//GetRefApplLastSeqNum gets RefApplLastSeqNum, Tag 1357
229+
func (m NoApplIDs) GetRefApplLastSeqNum() (v int, err quickfix.MessageRejectError) {
230+
var f field.RefApplLastSeqNumField
231+
if err = m.Get(&f); err == nil {
232+
v = f.Value()
233+
}
234+
return
235+
}
236+
237+
//HasRefApplID returns true if RefApplID is present, Tag 1355
238+
func (m NoApplIDs) HasRefApplID() bool {
239+
return m.Has(tag.RefApplID)
240+
}
241+
242+
//HasApplNewSeqNum returns true if ApplNewSeqNum is present, Tag 1399
243+
func (m NoApplIDs) HasApplNewSeqNum() bool {
244+
return m.Has(tag.ApplNewSeqNum)
245+
}
246+
247+
//HasRefApplLastSeqNum returns true if RefApplLastSeqNum is present, Tag 1357
248+
func (m NoApplIDs) HasRefApplLastSeqNum() bool {
249+
return m.Has(tag.RefApplLastSeqNum)
250+
}
251+
252+
//NoApplIDsRepeatingGroup is a repeating group, Tag 1351
253+
type NoApplIDsRepeatingGroup struct {
254+
*quickfix.RepeatingGroup
255+
}
256+
257+
//NewNoApplIDsRepeatingGroup returns an initialized, NoApplIDsRepeatingGroup
258+
func NewNoApplIDsRepeatingGroup() NoApplIDsRepeatingGroup {
259+
return NoApplIDsRepeatingGroup{
260+
quickfix.NewRepeatingGroup(tag.NoApplIDs,
261+
quickfix.GroupTemplate{quickfix.GroupElement(tag.RefApplID), quickfix.GroupElement(tag.ApplNewSeqNum), quickfix.GroupElement(tag.RefApplLastSeqNum)})}
262+
}
263+
264+
//Add create and append a new NoApplIDs to this group
265+
func (m NoApplIDsRepeatingGroup) Add() NoApplIDs {
266+
g := m.RepeatingGroup.Add()
267+
return NoApplIDs{g}
268+
}
269+
270+
//Get returns the ith NoApplIDs in the NoApplIDsRepeatinGroup
271+
func (m NoApplIDsRepeatingGroup) Get(i int) NoApplIDs {
272+
return NoApplIDs{m.RepeatingGroup.Get(i)}
273+
}

0 commit comments

Comments
 (0)