Skip to content

Commit

Permalink
generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Busbey committed Oct 6, 2017
0 parents commit 8edfb15
Show file tree
Hide file tree
Showing 93 changed files with 355,386 additions and 0 deletions.
2,060 changes: 2,060 additions & 0 deletions adjustedpositionreport/AdjustedPositionReport.generated.go

Large diffs are not rendered by default.

4,129 changes: 4,129 additions & 0 deletions advertisement/Advertisement.generated.go

Large diffs are not rendered by default.

7,841 changes: 7,841 additions & 0 deletions allocationinstruction/AllocationInstruction.generated.go

Large diffs are not rendered by default.

988 changes: 988 additions & 0 deletions allocationinstructionack/AllocationInstructionAck.generated.go

Large diffs are not rendered by default.

7,841 changes: 7,841 additions & 0 deletions allocationinstructionalert/AllocationInstructionAlert.generated.go

Large diffs are not rendered by default.

7,938 changes: 7,938 additions & 0 deletions allocationreport/AllocationReport.generated.go

Large diffs are not rendered by default.

1,083 changes: 1,083 additions & 0 deletions allocationreportack/AllocationReportAck.generated.go

Large diffs are not rendered by default.

4,833 changes: 4,833 additions & 0 deletions assignmentreport/AssignmentReport.generated.go

Large diffs are not rendered by default.

1,047 changes: 1,047 additions & 0 deletions bidrequest/BidRequest.generated.go

Large diffs are not rendered by default.

482 changes: 482 additions & 0 deletions bidresponse/BidResponse.generated.go

Large diffs are not rendered by default.

190 changes: 190 additions & 0 deletions businessmessagereject/BusinessMessageReject.generated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
package businessmessagereject

import (
"github.com/quickfixgo/enum"
"github.com/quickfixgo/field"
"github.com/quickfixgo/fixt11"
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/tag"
)

//BusinessMessageReject is the fix50 BusinessMessageReject type, MsgType = j
type BusinessMessageReject struct {
fixt11.Header
*quickfix.Body
fixt11.Trailer
Message *quickfix.Message
}

//FromMessage creates a BusinessMessageReject from a quickfix.Message instance
func FromMessage(m *quickfix.Message) BusinessMessageReject {
return BusinessMessageReject{
Header: fixt11.Header{&m.Header},
Body: &m.Body,
Trailer: fixt11.Trailer{&m.Trailer},
Message: m,
}
}

//ToMessage returns a quickfix.Message instance
func (m BusinessMessageReject) ToMessage() *quickfix.Message {
return m.Message
}

//New returns a BusinessMessageReject initialized with the required fields for BusinessMessageReject
func New(refmsgtype field.RefMsgTypeField, businessrejectreason field.BusinessRejectReasonField) (m BusinessMessageReject) {
m.Message = quickfix.NewMessage()
m.Header = fixt11.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer

m.Header.Set(field.NewMsgType("j"))
m.Set(refmsgtype)
m.Set(businessrejectreason)

return
}

//A RouteOut is the callback type that should be implemented for routing Message
type RouteOut func(msg BusinessMessageReject, sessionID quickfix.SessionID) quickfix.MessageRejectError

//Route returns the beginstring, message type, and MessageRoute for this Message type
func Route(router RouteOut) (string, string, quickfix.MessageRoute) {
r := func(msg *quickfix.Message, sessionID quickfix.SessionID) quickfix.MessageRejectError {
return router(FromMessage(msg), sessionID)
}
return "7", "j", r
}

//SetRefSeqNum sets RefSeqNum, Tag 45
func (m BusinessMessageReject) SetRefSeqNum(v int) {
m.Set(field.NewRefSeqNum(v))
}

//SetText sets Text, Tag 58
func (m BusinessMessageReject) SetText(v string) {
m.Set(field.NewText(v))
}

//SetEncodedTextLen sets EncodedTextLen, Tag 354
func (m BusinessMessageReject) SetEncodedTextLen(v int) {
m.Set(field.NewEncodedTextLen(v))
}

//SetEncodedText sets EncodedText, Tag 355
func (m BusinessMessageReject) SetEncodedText(v string) {
m.Set(field.NewEncodedText(v))
}

//SetRefMsgType sets RefMsgType, Tag 372
func (m BusinessMessageReject) SetRefMsgType(v string) {
m.Set(field.NewRefMsgType(v))
}

//SetBusinessRejectRefID sets BusinessRejectRefID, Tag 379
func (m BusinessMessageReject) SetBusinessRejectRefID(v string) {
m.Set(field.NewBusinessRejectRefID(v))
}

//SetBusinessRejectReason sets BusinessRejectReason, Tag 380
func (m BusinessMessageReject) SetBusinessRejectReason(v enum.BusinessRejectReason) {
m.Set(field.NewBusinessRejectReason(v))
}

//GetRefSeqNum gets RefSeqNum, Tag 45
func (m BusinessMessageReject) GetRefSeqNum() (v int, err quickfix.MessageRejectError) {
var f field.RefSeqNumField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//GetText gets Text, Tag 58
func (m BusinessMessageReject) GetText() (v string, err quickfix.MessageRejectError) {
var f field.TextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//GetEncodedTextLen gets EncodedTextLen, Tag 354
func (m BusinessMessageReject) GetEncodedTextLen() (v int, err quickfix.MessageRejectError) {
var f field.EncodedTextLenField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//GetEncodedText gets EncodedText, Tag 355
func (m BusinessMessageReject) GetEncodedText() (v string, err quickfix.MessageRejectError) {
var f field.EncodedTextField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//GetRefMsgType gets RefMsgType, Tag 372
func (m BusinessMessageReject) GetRefMsgType() (v string, err quickfix.MessageRejectError) {
var f field.RefMsgTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//GetBusinessRejectRefID gets BusinessRejectRefID, Tag 379
func (m BusinessMessageReject) GetBusinessRejectRefID() (v string, err quickfix.MessageRejectError) {
var f field.BusinessRejectRefIDField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//GetBusinessRejectReason gets BusinessRejectReason, Tag 380
func (m BusinessMessageReject) GetBusinessRejectReason() (v enum.BusinessRejectReason, err quickfix.MessageRejectError) {
var f field.BusinessRejectReasonField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}

//HasRefSeqNum returns true if RefSeqNum is present, Tag 45
func (m BusinessMessageReject) HasRefSeqNum() bool {
return m.Has(tag.RefSeqNum)
}

//HasText returns true if Text is present, Tag 58
func (m BusinessMessageReject) HasText() bool {
return m.Has(tag.Text)
}

//HasEncodedTextLen returns true if EncodedTextLen is present, Tag 354
func (m BusinessMessageReject) HasEncodedTextLen() bool {
return m.Has(tag.EncodedTextLen)
}

//HasEncodedText returns true if EncodedText is present, Tag 355
func (m BusinessMessageReject) HasEncodedText() bool {
return m.Has(tag.EncodedText)
}

//HasRefMsgType returns true if RefMsgType is present, Tag 372
func (m BusinessMessageReject) HasRefMsgType() bool {
return m.Has(tag.RefMsgType)
}

//HasBusinessRejectRefID returns true if BusinessRejectRefID is present, Tag 379
func (m BusinessMessageReject) HasBusinessRejectRefID() bool {
return m.Has(tag.BusinessRejectRefID)
}

//HasBusinessRejectReason returns true if BusinessRejectReason is present, Tag 380
func (m BusinessMessageReject) HasBusinessRejectReason() bool {
return m.Has(tag.BusinessRejectReason)
}
Loading

0 comments on commit 8edfb15

Please sign in to comment.