Merged
This commit is contained in:
1 parent
a19415dfe9
commit
2ddd467151
671 files changed
+124855
No files matched your search
@@ -0,0 +1,52 @@
|
||||
#ifndef FIX40_ADVERTISEMENT_H
|
||||
#define FIX40_ADVERTISEMENT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Advertisement : public Message
|
||||
{
|
||||
public:
|
||||
Advertisement() : Message(MsgType()) {}
|
||||
Advertisement(const FIX::Message& m) : Message(m) {}
|
||||
Advertisement(const Message& m) : Message(m) {}
|
||||
Advertisement(const Advertisement& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("7"); }
|
||||
|
||||
Advertisement(
|
||||
const FIX::AdvId& aAdvId,
|
||||
const FIX::AdvTransType& aAdvTransType,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::AdvSide& aAdvSide,
|
||||
const FIX::Shares& aShares )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aAdvId);
|
||||
set(aAdvTransType);
|
||||
set(aSymbol);
|
||||
set(aAdvSide);
|
||||
set(aShares);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::AdvId);
|
||||
FIELD_SET(*this, FIX::AdvTransType);
|
||||
FIELD_SET(*this, FIX::AdvRefID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::AdvSide);
|
||||
FIELD_SET(*this, FIX::Shares);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,109 @@
|
||||
#ifndef FIX40_ALLOCATION_H
|
||||
#define FIX40_ALLOCATION_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Allocation : public Message
|
||||
{
|
||||
public:
|
||||
Allocation() : Message(MsgType()) {}
|
||||
Allocation(const FIX::Message& m) : Message(m) {}
|
||||
Allocation(const Message& m) : Message(m) {}
|
||||
Allocation(const Allocation& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("J"); }
|
||||
|
||||
Allocation(
|
||||
const FIX::AllocID& aAllocID,
|
||||
const FIX::AllocTransType& aAllocTransType,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Shares& aShares,
|
||||
const FIX::AvgPx& aAvgPx,
|
||||
const FIX::TradeDate& aTradeDate )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aAllocID);
|
||||
set(aAllocTransType);
|
||||
set(aSide);
|
||||
set(aSymbol);
|
||||
set(aShares);
|
||||
set(aAvgPx);
|
||||
set(aTradeDate);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::AllocID);
|
||||
FIELD_SET(*this, FIX::AllocTransType);
|
||||
FIELD_SET(*this, FIX::RefAllocID);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Shares);
|
||||
FIELD_SET(*this, FIX::AvgPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::AvgPrxPrecision);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::NetMoney);
|
||||
FIELD_SET(*this, FIX::SettlCurrAmt);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::OpenClose);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::NoOrders);
|
||||
class NoOrders: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,66,105,0)) {}
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
};
|
||||
FIELD_SET(*this, FIX::NoExecs);
|
||||
class NoExecs: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoExecs() : FIX::Group(124,17,FIX::message_order(17,32,31,30,0)) {}
|
||||
FIELD_SET(*this, FIX::ExecID);
|
||||
FIELD_SET(*this, FIX::LastShares);
|
||||
FIELD_SET(*this, FIX::LastPx);
|
||||
FIELD_SET(*this, FIX::LastMkt);
|
||||
};
|
||||
FIELD_SET(*this, FIX::NoMiscFees);
|
||||
class NoMiscFees: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {}
|
||||
FIELD_SET(*this, FIX::MiscFeeAmt);
|
||||
FIELD_SET(*this, FIX::MiscFeeCurr);
|
||||
FIELD_SET(*this, FIX::MiscFeeType);
|
||||
};
|
||||
FIELD_SET(*this, FIX::NoAllocs);
|
||||
class NoAllocs: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,81,76,109,12,13,85,92,86,0)) {}
|
||||
FIELD_SET(*this, FIX::AllocAccount);
|
||||
FIELD_SET(*this, FIX::AllocShares);
|
||||
FIELD_SET(*this, FIX::ProcessCode);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::NoDlvyInst);
|
||||
FIELD_SET(*this, FIX::BrokerOfCredit);
|
||||
FIELD_SET(*this, FIX::DlvyInst);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef FIX40_ALLOCATIONINSTRUCTIONACK_H
|
||||
#define FIX40_ALLOCATIONINSTRUCTIONACK_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class AllocationInstructionAck : public Message
|
||||
{
|
||||
public:
|
||||
AllocationInstructionAck() : Message(MsgType()) {}
|
||||
AllocationInstructionAck(const FIX::Message& m) : Message(m) {}
|
||||
AllocationInstructionAck(const Message& m) : Message(m) {}
|
||||
AllocationInstructionAck(const AllocationInstructionAck& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("P"); }
|
||||
|
||||
AllocationInstructionAck(
|
||||
const FIX::AllocID& aAllocID,
|
||||
const FIX::TradeDate& aTradeDate,
|
||||
const FIX::AllocStatus& aAllocStatus )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aAllocID);
|
||||
set(aTradeDate);
|
||||
set(aAllocStatus);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::AllocID);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::AllocStatus);
|
||||
FIELD_SET(*this, FIX::AllocRejCode);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,48 @@
|
||||
#ifndef FIX40_DONTKNOWTRADE_H
|
||||
#define FIX40_DONTKNOWTRADE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class DontKnowTrade : public Message
|
||||
{
|
||||
public:
|
||||
DontKnowTrade() : Message(MsgType()) {}
|
||||
DontKnowTrade(const FIX::Message& m) : Message(m) {}
|
||||
DontKnowTrade(const Message& m) : Message(m) {}
|
||||
DontKnowTrade(const DontKnowTrade& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("Q"); }
|
||||
|
||||
DontKnowTrade(
|
||||
const FIX::DKReason& aDKReason,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::LastShares& aLastShares,
|
||||
const FIX::LastPx& aLastPx )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aDKReason);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aLastShares);
|
||||
set(aLastPx);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ExecID);
|
||||
FIELD_SET(*this, FIX::DKReason);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::LastShares);
|
||||
FIELD_SET(*this, FIX::LastPx);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,42 @@
|
||||
#ifndef FIX40_EMAIL_H
|
||||
#define FIX40_EMAIL_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Email : public Message
|
||||
{
|
||||
public:
|
||||
Email() : Message(MsgType()) {}
|
||||
Email(const FIX::Message& m) : Message(m) {}
|
||||
Email(const Message& m) : Message(m) {}
|
||||
Email(const Email& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("C"); }
|
||||
|
||||
Email(
|
||||
const FIX::EmailType& aEmailType,
|
||||
const FIX::LinesOfText& aLinesOfText,
|
||||
const FIX::Text& aText )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aEmailType);
|
||||
set(aLinesOfText);
|
||||
set(aText);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::EmailType);
|
||||
FIELD_SET(*this, FIX::OrigTime);
|
||||
FIELD_SET(*this, FIX::RelatdSym);
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::LinesOfText);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::RawDataLength);
|
||||
FIELD_SET(*this, FIX::RawData);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,102 @@
|
||||
#ifndef FIX40_EXECUTIONREPORT_H
|
||||
#define FIX40_EXECUTIONREPORT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class ExecutionReport : public Message
|
||||
{
|
||||
public:
|
||||
ExecutionReport() : Message(MsgType()) {}
|
||||
ExecutionReport(const FIX::Message& m) : Message(m) {}
|
||||
ExecutionReport(const Message& m) : Message(m) {}
|
||||
ExecutionReport(const ExecutionReport& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("8"); }
|
||||
|
||||
ExecutionReport(
|
||||
const FIX::OrderID& aOrderID,
|
||||
const FIX::ExecID& aExecID,
|
||||
const FIX::ExecTransType& aExecTransType,
|
||||
const FIX::OrdStatus& aOrdStatus,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::LastShares& aLastShares,
|
||||
const FIX::LastPx& aLastPx,
|
||||
const FIX::CumQty& aCumQty,
|
||||
const FIX::AvgPx& aAvgPx )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrderID);
|
||||
set(aExecID);
|
||||
set(aExecTransType);
|
||||
set(aOrdStatus);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aLastShares);
|
||||
set(aLastPx);
|
||||
set(aCumQty);
|
||||
set(aAvgPx);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::ExecID);
|
||||
FIELD_SET(*this, FIX::ExecTransType);
|
||||
FIELD_SET(*this, FIX::ExecRefID);
|
||||
FIELD_SET(*this, FIX::OrdStatus);
|
||||
FIELD_SET(*this, FIX::OrdRejReason);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::LastShares);
|
||||
FIELD_SET(*this, FIX::LastPx);
|
||||
FIELD_SET(*this, FIX::LastMkt);
|
||||
FIELD_SET(*this, FIX::LastCapacity);
|
||||
FIELD_SET(*this, FIX::CumQty);
|
||||
FIELD_SET(*this, FIX::AvgPx);
|
||||
FIELD_SET(*this, FIX::TradeDate);
|
||||
FIELD_SET(*this, FIX::TransactTime);
|
||||
FIELD_SET(*this, FIX::ReportToExch);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::NetMoney);
|
||||
FIELD_SET(*this, FIX::SettlCurrAmt);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::NoMiscFees);
|
||||
class NoMiscFees: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {}
|
||||
FIELD_SET(*this, FIX::MiscFeeAmt);
|
||||
FIELD_SET(*this, FIX::MiscFeeCurr);
|
||||
FIELD_SET(*this, FIX::MiscFeeType);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef FIX40_HEARTBEAT_H
|
||||
#define FIX40_HEARTBEAT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Heartbeat : public Message
|
||||
{
|
||||
public:
|
||||
Heartbeat() : Message(MsgType()) {}
|
||||
Heartbeat(const FIX::Message& m) : Message(m) {}
|
||||
Heartbeat(const Message& m) : Message(m) {}
|
||||
Heartbeat(const Heartbeat& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("0"); }
|
||||
|
||||
FIELD_SET(*this, FIX::TestReqID);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,56 @@
|
||||
#ifndef FIX40_IOI_H
|
||||
#define FIX40_IOI_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class IOI : public Message
|
||||
{
|
||||
public:
|
||||
IOI() : Message(MsgType()) {}
|
||||
IOI(const FIX::Message& m) : Message(m) {}
|
||||
IOI(const Message& m) : Message(m) {}
|
||||
IOI(const IOI& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("6"); }
|
||||
|
||||
IOI(
|
||||
const FIX::IOIid& aIOIid,
|
||||
const FIX::IOITransType& aIOITransType,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::IOIShares& aIOIShares )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aIOIid);
|
||||
set(aIOITransType);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aIOIShares);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::IOIid);
|
||||
FIELD_SET(*this, FIX::IOITransType);
|
||||
FIELD_SET(*this, FIX::IOIRefID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::IOIShares);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::ValidUntilTime);
|
||||
FIELD_SET(*this, FIX::IOIQltyInd);
|
||||
FIELD_SET(*this, FIX::IOIOthSvc);
|
||||
FIELD_SET(*this, FIX::IOINaturalFlag);
|
||||
FIELD_SET(*this, FIX::IOIQualifier);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef FIX40_LISTCANCELREQUEST_H
|
||||
#define FIX40_LISTCANCELREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class ListCancelRequest : public Message
|
||||
{
|
||||
public:
|
||||
ListCancelRequest() : Message(MsgType()) {}
|
||||
ListCancelRequest(const FIX::Message& m) : Message(m) {}
|
||||
ListCancelRequest(const Message& m) : Message(m) {}
|
||||
ListCancelRequest(const ListCancelRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("K"); }
|
||||
|
||||
ListCancelRequest(
|
||||
const FIX::ListID& aListID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef FIX40_LISTEXECUTE_H
|
||||
#define FIX40_LISTEXECUTE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class ListExecute : public Message
|
||||
{
|
||||
public:
|
||||
ListExecute() : Message(MsgType()) {}
|
||||
ListExecute(const FIX::Message& m) : Message(m) {}
|
||||
ListExecute(const Message& m) : Message(m) {}
|
||||
ListExecute(const ListExecute& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("L"); }
|
||||
|
||||
ListExecute(
|
||||
const FIX::ListID& aListID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,47 @@
|
||||
#ifndef FIX40_LISTSTATUS_H
|
||||
#define FIX40_LISTSTATUS_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class ListStatus : public Message
|
||||
{
|
||||
public:
|
||||
ListStatus() : Message(MsgType()) {}
|
||||
ListStatus(const FIX::Message& m) : Message(m) {}
|
||||
ListStatus(const Message& m) : Message(m) {}
|
||||
ListStatus(const ListStatus& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("N"); }
|
||||
|
||||
ListStatus(
|
||||
const FIX::ListID& aListID,
|
||||
const FIX::NoRpts& aNoRpts,
|
||||
const FIX::RptSeq& aRptSeq )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
set(aNoRpts);
|
||||
set(aRptSeq);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::NoRpts);
|
||||
FIELD_SET(*this, FIX::RptSeq);
|
||||
FIELD_SET(*this, FIX::NoOrders);
|
||||
class NoOrders: public FIX::Group
|
||||
{
|
||||
public:
|
||||
NoOrders() : FIX::Group(73,11,FIX::message_order(11,14,84,6,0)) {}
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::CumQty);
|
||||
FIELD_SET(*this, FIX::CxlQty);
|
||||
FIELD_SET(*this, FIX::AvgPx);
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef FIX40_LISTSTATUSREQUEST_H
|
||||
#define FIX40_LISTSTATUSREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class ListStatusRequest : public Message
|
||||
{
|
||||
public:
|
||||
ListStatusRequest() : Message(MsgType()) {}
|
||||
ListStatusRequest(const FIX::Message& m) : Message(m) {}
|
||||
ListStatusRequest(const Message& m) : Message(m) {}
|
||||
ListStatusRequest(const ListStatusRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("M"); }
|
||||
|
||||
ListStatusRequest(
|
||||
const FIX::ListID& aListID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,35 @@
|
||||
#ifndef FIX40_LOGON_H
|
||||
#define FIX40_LOGON_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Logon : public Message
|
||||
{
|
||||
public:
|
||||
Logon() : Message(MsgType()) {}
|
||||
Logon(const FIX::Message& m) : Message(m) {}
|
||||
Logon(const Message& m) : Message(m) {}
|
||||
Logon(const Logon& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("A"); }
|
||||
|
||||
Logon(
|
||||
const FIX::EncryptMethod& aEncryptMethod,
|
||||
const FIX::HeartBtInt& aHeartBtInt )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aEncryptMethod);
|
||||
set(aHeartBtInt);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::EncryptMethod);
|
||||
FIELD_SET(*this, FIX::HeartBtInt);
|
||||
FIELD_SET(*this, FIX::RawDataLength);
|
||||
FIELD_SET(*this, FIX::RawData);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef FIX40_LOGOUT_H
|
||||
#define FIX40_LOGOUT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Logout : public Message
|
||||
{
|
||||
public:
|
||||
Logout() : Message(MsgType()) {}
|
||||
Logout(const FIX::Message& m) : Message(m) {}
|
||||
Logout(const Message& m) : Message(m) {}
|
||||
Logout(const Logout& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("5"); }
|
||||
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,58 @@
|
||||
#ifndef FIX40_MESSAGES_H
|
||||
#define FIX40_MESSAGES_H
|
||||
|
||||
#include "../Message.h"
|
||||
#include "../Group.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
class Header : public FIX::Header
|
||||
{
|
||||
public:
|
||||
FIELD_SET(*this, FIX::BeginString);
|
||||
FIELD_SET(*this, FIX::BodyLength);
|
||||
FIELD_SET(*this, FIX::MsgType);
|
||||
FIELD_SET(*this, FIX::SenderCompID);
|
||||
FIELD_SET(*this, FIX::TargetCompID);
|
||||
FIELD_SET(*this, FIX::OnBehalfOfCompID);
|
||||
FIELD_SET(*this, FIX::DeliverToCompID);
|
||||
FIELD_SET(*this, FIX::SecureDataLen);
|
||||
FIELD_SET(*this, FIX::SecureData);
|
||||
FIELD_SET(*this, FIX::MsgSeqNum);
|
||||
FIELD_SET(*this, FIX::SenderSubID);
|
||||
FIELD_SET(*this, FIX::TargetSubID);
|
||||
FIELD_SET(*this, FIX::OnBehalfOfSubID);
|
||||
FIELD_SET(*this, FIX::DeliverToSubID);
|
||||
FIELD_SET(*this, FIX::PossDupFlag);
|
||||
FIELD_SET(*this, FIX::PossResend);
|
||||
FIELD_SET(*this, FIX::SendingTime);
|
||||
FIELD_SET(*this, FIX::OrigSendingTime);
|
||||
};
|
||||
|
||||
class Trailer : public FIX::Trailer
|
||||
{
|
||||
public:
|
||||
FIELD_SET(*this, FIX::SignatureLength);
|
||||
FIELD_SET(*this, FIX::Signature);
|
||||
FIELD_SET(*this, FIX::CheckSum);
|
||||
};
|
||||
|
||||
class Message : public FIX::Message
|
||||
{
|
||||
public:
|
||||
Message( const FIX::MsgType& msgtype )
|
||||
: FIX::Message(
|
||||
FIX::BeginString("FIX.4.0"), msgtype )
|
||||
{}
|
||||
|
||||
Message(const FIX::Message& m) : FIX::Message(m) {}
|
||||
Message(const Message& m) : FIX::Message(m) {}
|
||||
Header& getHeader() { return (Header&)m_header; }
|
||||
const Header& getHeader() const { return (Header&)m_header; }
|
||||
Trailer& getTrailer() { return (Trailer&)m_trailer; }
|
||||
const Trailer& getTrailer() const { return (Trailer&)m_trailer; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,334 @@
|
||||
/* -*- C++ -*- */
|
||||
|
||||
/****************************************************************************
|
||||
** Copyright (c) 2001-2014
|
||||
**
|
||||
** This file is part of the QuickFIX FIX Engine
|
||||
**
|
||||
** This file may be distributed under the terms of the quickfixengine.org
|
||||
** license as defined by quickfixengine.org and appearing in the file
|
||||
** LICENSE included in the packaging of this file.
|
||||
**
|
||||
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
**
|
||||
** See http://www.quickfixengine.org/LICENSE for licensing information.
|
||||
**
|
||||
** Contact ask@quickfixengine.org if any conditions of this licensing are
|
||||
** not clear to you.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef FIX40_MESSAGECRACKER_H
|
||||
#define FIX40_MESSAGECRACKER_H
|
||||
|
||||
|
||||
#include "../SessionID.h"
|
||||
#include "../Exceptions.h"
|
||||
|
||||
#include "../fix40/Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
class Heartbeat;
|
||||
class TestRequest;
|
||||
class ResendRequest;
|
||||
class Reject;
|
||||
class SequenceReset;
|
||||
class Logout;
|
||||
class IOI;
|
||||
class Advertisement;
|
||||
class ExecutionReport;
|
||||
class OrderCancelReject;
|
||||
class Logon;
|
||||
class News;
|
||||
class Email;
|
||||
class NewOrderSingle;
|
||||
class NewOrderList;
|
||||
class OrderCancelRequest;
|
||||
class OrderCancelReplaceRequest;
|
||||
class OrderStatusRequest;
|
||||
class Allocation;
|
||||
class ListCancelRequest;
|
||||
class ListExecute;
|
||||
class ListStatusRequest;
|
||||
class ListStatus;
|
||||
class AllocationInstructionAck;
|
||||
class DontKnowTrade;
|
||||
class QuoteRequest;
|
||||
class Quote;
|
||||
|
||||
class MessageCracker
|
||||
{
|
||||
public:
|
||||
virtual ~MessageCracker() {}
|
||||
virtual void onMessage( const Message&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( Message&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Heartbeat&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const TestRequest&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const ResendRequest&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const Reject&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const SequenceReset&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const Logout&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const IOI&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Advertisement&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ExecutionReport&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderCancelReject&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Logon&, const FIX::SessionID& )
|
||||
{}
|
||||
virtual void onMessage( const News&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Email&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const NewOrderSingle&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const NewOrderList&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderCancelRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderCancelReplaceRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const OrderStatusRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Allocation&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListCancelRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListExecute&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListStatusRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const ListStatus&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const AllocationInstructionAck&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const DontKnowTrade&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const QuoteRequest&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( const Quote&, const FIX::SessionID& )
|
||||
{ throw FIX::UnsupportedMessageType(); }
|
||||
virtual void onMessage( Heartbeat&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( TestRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Reject&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( SequenceReset&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Logout&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( IOI&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Advertisement&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ExecutionReport&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderCancelReject&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Logon&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( News&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Email&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( NewOrderSingle&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( NewOrderList&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderCancelRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderCancelReplaceRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( OrderStatusRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Allocation&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListCancelRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListExecute&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListStatusRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( ListStatus&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( AllocationInstructionAck&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( DontKnowTrade&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( QuoteRequest&, const FIX::SessionID& ) {}
|
||||
virtual void onMessage( Quote&, const FIX::SessionID& ) {}
|
||||
|
||||
public:
|
||||
void crack( const Message& message,
|
||||
const FIX::SessionID& sessionID )
|
||||
{
|
||||
const std::string& msgTypeValue
|
||||
= message.getHeader().getField( FIX::FIELD::MsgType );
|
||||
|
||||
if( msgTypeValue == "0" )
|
||||
onMessage( (const Heartbeat&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "1" )
|
||||
onMessage( (const TestRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "2" )
|
||||
onMessage( (const ResendRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "3" )
|
||||
onMessage( (const Reject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "4" )
|
||||
onMessage( (const SequenceReset&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "5" )
|
||||
onMessage( (const Logout&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "6" )
|
||||
onMessage( (const IOI&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "7" )
|
||||
onMessage( (const Advertisement&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "8" )
|
||||
onMessage( (const ExecutionReport&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "9" )
|
||||
onMessage( (const OrderCancelReject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "A" )
|
||||
onMessage( (const Logon&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "B" )
|
||||
onMessage( (const News&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "C" )
|
||||
onMessage( (const Email&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "D" )
|
||||
onMessage( (const NewOrderSingle&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "E" )
|
||||
onMessage( (const NewOrderList&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "F" )
|
||||
onMessage( (const OrderCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "G" )
|
||||
onMessage( (const OrderCancelReplaceRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "H" )
|
||||
onMessage( (const OrderStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "J" )
|
||||
onMessage( (const Allocation&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "K" )
|
||||
onMessage( (const ListCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "L" )
|
||||
onMessage( (const ListExecute&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "M" )
|
||||
onMessage( (const ListStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "N" )
|
||||
onMessage( (const ListStatus&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "P" )
|
||||
onMessage( (const AllocationInstructionAck&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "Q" )
|
||||
onMessage( (const DontKnowTrade&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "R" )
|
||||
onMessage( (const QuoteRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "S" )
|
||||
onMessage( (const Quote&)message, sessionID );
|
||||
else onMessage( message, sessionID );
|
||||
}
|
||||
|
||||
void crack( Message& message,
|
||||
const FIX::SessionID& sessionID )
|
||||
{
|
||||
FIX::MsgType msgType;
|
||||
message.getHeader().getField(msgType);
|
||||
std::string msgTypeValue = msgType.getValue();
|
||||
|
||||
if( msgTypeValue == "0" )
|
||||
onMessage( (Heartbeat&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "1" )
|
||||
onMessage( (TestRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "2" )
|
||||
onMessage( (ResendRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "3" )
|
||||
onMessage( (Reject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "4" )
|
||||
onMessage( (SequenceReset&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "5" )
|
||||
onMessage( (Logout&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "6" )
|
||||
onMessage( (IOI&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "7" )
|
||||
onMessage( (Advertisement&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "8" )
|
||||
onMessage( (ExecutionReport&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "9" )
|
||||
onMessage( (OrderCancelReject&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "A" )
|
||||
onMessage( (Logon&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "B" )
|
||||
onMessage( (News&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "C" )
|
||||
onMessage( (Email&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "D" )
|
||||
onMessage( (NewOrderSingle&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "E" )
|
||||
onMessage( (NewOrderList&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "F" )
|
||||
onMessage( (OrderCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "G" )
|
||||
onMessage( (OrderCancelReplaceRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "H" )
|
||||
onMessage( (OrderStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "J" )
|
||||
onMessage( (Allocation&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "K" )
|
||||
onMessage( (ListCancelRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "L" )
|
||||
onMessage( (ListExecute&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "M" )
|
||||
onMessage( (ListStatusRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "N" )
|
||||
onMessage( (ListStatus&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "P" )
|
||||
onMessage( (AllocationInstructionAck&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "Q" )
|
||||
onMessage( (DontKnowTrade&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "R" )
|
||||
onMessage( (QuoteRequest&)message, sessionID );
|
||||
else
|
||||
if( msgTypeValue == "S" )
|
||||
onMessage( (Quote&)message, sessionID );
|
||||
else onMessage( message, sessionID );
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,84 @@
|
||||
#ifndef FIX40_NEWORDERLIST_H
|
||||
#define FIX40_NEWORDERLIST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class NewOrderList : public Message
|
||||
{
|
||||
public:
|
||||
NewOrderList() : Message(MsgType()) {}
|
||||
NewOrderList(const FIX::Message& m) : Message(m) {}
|
||||
NewOrderList(const Message& m) : Message(m) {}
|
||||
NewOrderList(const NewOrderList& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("E"); }
|
||||
|
||||
NewOrderList(
|
||||
const FIX::ListID& aListID,
|
||||
const FIX::ListSeqNo& aListSeqNo,
|
||||
const FIX::ListNoOrds& aListNoOrds,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::HandlInst& aHandlInst,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::OrdType& aOrdType )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aListID);
|
||||
set(aListSeqNo);
|
||||
set(aListNoOrds);
|
||||
set(aClOrdID);
|
||||
set(aHandlInst);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aOrdType);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::WaveNo);
|
||||
FIELD_SET(*this, FIX::ListSeqNo);
|
||||
FIELD_SET(*this, FIX::ListNoOrds);
|
||||
FIELD_SET(*this, FIX::ListExecInst);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::HandlInst);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::MinQty);
|
||||
FIELD_SET(*this, FIX::MaxFloor);
|
||||
FIELD_SET(*this, FIX::ExDestination);
|
||||
FIELD_SET(*this, FIX::ProcessCode);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::PrevClosePx);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::LocateReqd);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::ForexReq);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,75 @@
|
||||
#ifndef FIX40_NEWORDERSINGLE_H
|
||||
#define FIX40_NEWORDERSINGLE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class NewOrderSingle : public Message
|
||||
{
|
||||
public:
|
||||
NewOrderSingle() : Message(MsgType()) {}
|
||||
NewOrderSingle(const FIX::Message& m) : Message(m) {}
|
||||
NewOrderSingle(const Message& m) : Message(m) {}
|
||||
NewOrderSingle(const NewOrderSingle& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("D"); }
|
||||
|
||||
NewOrderSingle(
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::HandlInst& aHandlInst,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::OrdType& aOrdType )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aClOrdID);
|
||||
set(aHandlInst);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aOrdType);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::HandlInst);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::MinQty);
|
||||
FIELD_SET(*this, FIX::MaxFloor);
|
||||
FIELD_SET(*this, FIX::ExDestination);
|
||||
FIELD_SET(*this, FIX::ProcessCode);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::PrevClosePx);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::LocateReqd);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::IOIid);
|
||||
FIELD_SET(*this, FIX::QuoteID);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::ForexReq);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,38 @@
|
||||
#ifndef FIX40_NEWS_H
|
||||
#define FIX40_NEWS_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class News : public Message
|
||||
{
|
||||
public:
|
||||
News() : Message(MsgType()) {}
|
||||
News(const FIX::Message& m) : Message(m) {}
|
||||
News(const Message& m) : Message(m) {}
|
||||
News(const News& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("B"); }
|
||||
|
||||
News(
|
||||
const FIX::LinesOfText& aLinesOfText,
|
||||
const FIX::Text& aText )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aLinesOfText);
|
||||
set(aText);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrigTime);
|
||||
FIELD_SET(*this, FIX::Urgency);
|
||||
FIELD_SET(*this, FIX::RelatdSym);
|
||||
FIELD_SET(*this, FIX::LinesOfText);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
FIELD_SET(*this, FIX::RawDataLength);
|
||||
FIELD_SET(*this, FIX::RawData);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,38 @@
|
||||
#ifndef FIX40_ORDERCANCELREJECT_H
|
||||
#define FIX40_ORDERCANCELREJECT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class OrderCancelReject : public Message
|
||||
{
|
||||
public:
|
||||
OrderCancelReject() : Message(MsgType()) {}
|
||||
OrderCancelReject(const FIX::Message& m) : Message(m) {}
|
||||
OrderCancelReject(const Message& m) : Message(m) {}
|
||||
OrderCancelReject(const OrderCancelReject& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("9"); }
|
||||
|
||||
OrderCancelReject(
|
||||
const FIX::OrderID& aOrderID,
|
||||
const FIX::ClOrdID& aClOrdID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrderID);
|
||||
set(aClOrdID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::CxlRejReason);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,75 @@
|
||||
#ifndef FIX40_ORDERCANCELREPLACEREQUEST_H
|
||||
#define FIX40_ORDERCANCELREPLACEREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class OrderCancelReplaceRequest : public Message
|
||||
{
|
||||
public:
|
||||
OrderCancelReplaceRequest() : Message(MsgType()) {}
|
||||
OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {}
|
||||
OrderCancelReplaceRequest(const Message& m) : Message(m) {}
|
||||
OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("G"); }
|
||||
|
||||
OrderCancelReplaceRequest(
|
||||
const FIX::OrigClOrdID& aOrigClOrdID,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::HandlInst& aHandlInst,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty,
|
||||
const FIX::OrdType& aOrdType )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrigClOrdID);
|
||||
set(aClOrdID);
|
||||
set(aHandlInst);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
set(aOrdType);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::OrigClOrdID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::Account);
|
||||
FIELD_SET(*this, FIX::SettlmntTyp);
|
||||
FIELD_SET(*this, FIX::FutSettDate);
|
||||
FIELD_SET(*this, FIX::HandlInst);
|
||||
FIELD_SET(*this, FIX::ExecInst);
|
||||
FIELD_SET(*this, FIX::MinQty);
|
||||
FIELD_SET(*this, FIX::MaxFloor);
|
||||
FIELD_SET(*this, FIX::ExDestination);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::OrdType);
|
||||
FIELD_SET(*this, FIX::Price);
|
||||
FIELD_SET(*this, FIX::StopPx);
|
||||
FIELD_SET(*this, FIX::Currency);
|
||||
FIELD_SET(*this, FIX::TimeInForce);
|
||||
FIELD_SET(*this, FIX::ExpireTime);
|
||||
FIELD_SET(*this, FIX::Commission);
|
||||
FIELD_SET(*this, FIX::CommType);
|
||||
FIELD_SET(*this, FIX::Rule80A);
|
||||
FIELD_SET(*this, FIX::ForexReq);
|
||||
FIELD_SET(*this, FIX::SettlCurrency);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,55 @@
|
||||
#ifndef FIX40_ORDERCANCELREQUEST_H
|
||||
#define FIX40_ORDERCANCELREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class OrderCancelRequest : public Message
|
||||
{
|
||||
public:
|
||||
OrderCancelRequest() : Message(MsgType()) {}
|
||||
OrderCancelRequest(const FIX::Message& m) : Message(m) {}
|
||||
OrderCancelRequest(const Message& m) : Message(m) {}
|
||||
OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("F"); }
|
||||
|
||||
OrderCancelRequest(
|
||||
const FIX::OrigClOrdID& aOrigClOrdID,
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::CxlType& aCxlType,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide,
|
||||
const FIX::OrderQty& aOrderQty )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aOrigClOrdID);
|
||||
set(aClOrdID);
|
||||
set(aCxlType);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
set(aOrderQty);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrigClOrdID);
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ListID);
|
||||
FIELD_SET(*this, FIX::CxlType);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,42 @@
|
||||
#ifndef FIX40_ORDERSTATUSREQUEST_H
|
||||
#define FIX40_ORDERSTATUSREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class OrderStatusRequest : public Message
|
||||
{
|
||||
public:
|
||||
OrderStatusRequest() : Message(MsgType()) {}
|
||||
OrderStatusRequest(const FIX::Message& m) : Message(m) {}
|
||||
OrderStatusRequest(const Message& m) : Message(m) {}
|
||||
OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("H"); }
|
||||
|
||||
OrderStatusRequest(
|
||||
const FIX::ClOrdID& aClOrdID,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::Side& aSide )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aClOrdID);
|
||||
set(aSymbol);
|
||||
set(aSide);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::OrderID);
|
||||
FIELD_SET(*this, FIX::ClOrdID);
|
||||
FIELD_SET(*this, FIX::ClientID);
|
||||
FIELD_SET(*this, FIX::ExecBroker);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,46 @@
|
||||
#ifndef FIX40_QUOTE_H
|
||||
#define FIX40_QUOTE_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Quote : public Message
|
||||
{
|
||||
public:
|
||||
Quote() : Message(MsgType()) {}
|
||||
Quote(const FIX::Message& m) : Message(m) {}
|
||||
Quote(const Message& m) : Message(m) {}
|
||||
Quote(const Quote& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("S"); }
|
||||
|
||||
Quote(
|
||||
const FIX::QuoteID& aQuoteID,
|
||||
const FIX::Symbol& aSymbol,
|
||||
const FIX::BidPx& aBidPx )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aQuoteID);
|
||||
set(aSymbol);
|
||||
set(aBidPx);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::QuoteReqID);
|
||||
FIELD_SET(*this, FIX::QuoteID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::BidPx);
|
||||
FIELD_SET(*this, FIX::OfferPx);
|
||||
FIELD_SET(*this, FIX::BidSize);
|
||||
FIELD_SET(*this, FIX::OfferSize);
|
||||
FIELD_SET(*this, FIX::ValidUntilTime);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef FIX40_QUOTEREQUEST_H
|
||||
#define FIX40_QUOTEREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class QuoteRequest : public Message
|
||||
{
|
||||
public:
|
||||
QuoteRequest() : Message(MsgType()) {}
|
||||
QuoteRequest(const FIX::Message& m) : Message(m) {}
|
||||
QuoteRequest(const Message& m) : Message(m) {}
|
||||
QuoteRequest(const QuoteRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("R"); }
|
||||
|
||||
QuoteRequest(
|
||||
const FIX::QuoteReqID& aQuoteReqID,
|
||||
const FIX::Symbol& aSymbol )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aQuoteReqID);
|
||||
set(aSymbol);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::QuoteReqID);
|
||||
FIELD_SET(*this, FIX::Symbol);
|
||||
FIELD_SET(*this, FIX::SymbolSfx);
|
||||
FIELD_SET(*this, FIX::SecurityID);
|
||||
FIELD_SET(*this, FIX::IDSource);
|
||||
FIELD_SET(*this, FIX::Issuer);
|
||||
FIELD_SET(*this, FIX::SecurityDesc);
|
||||
FIELD_SET(*this, FIX::PrevClosePx);
|
||||
FIELD_SET(*this, FIX::Side);
|
||||
FIELD_SET(*this, FIX::OrderQty);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef FIX40_REJECT_H
|
||||
#define FIX40_REJECT_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class Reject : public Message
|
||||
{
|
||||
public:
|
||||
Reject() : Message(MsgType()) {}
|
||||
Reject(const FIX::Message& m) : Message(m) {}
|
||||
Reject(const Message& m) : Message(m) {}
|
||||
Reject(const Reject& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("3"); }
|
||||
|
||||
Reject(
|
||||
const FIX::RefSeqNum& aRefSeqNum )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aRefSeqNum);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::RefSeqNum);
|
||||
FIELD_SET(*this, FIX::Text);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,33 @@
|
||||
#ifndef FIX40_RESENDREQUEST_H
|
||||
#define FIX40_RESENDREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class ResendRequest : public Message
|
||||
{
|
||||
public:
|
||||
ResendRequest() : Message(MsgType()) {}
|
||||
ResendRequest(const FIX::Message& m) : Message(m) {}
|
||||
ResendRequest(const Message& m) : Message(m) {}
|
||||
ResendRequest(const ResendRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("2"); }
|
||||
|
||||
ResendRequest(
|
||||
const FIX::BeginSeqNo& aBeginSeqNo,
|
||||
const FIX::EndSeqNo& aEndSeqNo )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aBeginSeqNo);
|
||||
set(aEndSeqNo);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::BeginSeqNo);
|
||||
FIELD_SET(*this, FIX::EndSeqNo);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef FIX40_SEQUENCERESET_H
|
||||
#define FIX40_SEQUENCERESET_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class SequenceReset : public Message
|
||||
{
|
||||
public:
|
||||
SequenceReset() : Message(MsgType()) {}
|
||||
SequenceReset(const FIX::Message& m) : Message(m) {}
|
||||
SequenceReset(const Message& m) : Message(m) {}
|
||||
SequenceReset(const SequenceReset& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("4"); }
|
||||
|
||||
SequenceReset(
|
||||
const FIX::NewSeqNo& aNewSeqNo )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aNewSeqNo);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::GapFillFlag);
|
||||
FIELD_SET(*this, FIX::NewSeqNo);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef FIX40_TESTREQUEST_H
|
||||
#define FIX40_TESTREQUEST_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
namespace FIX40
|
||||
{
|
||||
|
||||
class TestRequest : public Message
|
||||
{
|
||||
public:
|
||||
TestRequest() : Message(MsgType()) {}
|
||||
TestRequest(const FIX::Message& m) : Message(m) {}
|
||||
TestRequest(const Message& m) : Message(m) {}
|
||||
TestRequest(const TestRequest& m) : Message(m) {}
|
||||
static FIX::MsgType MsgType() { return FIX::MsgType("1"); }
|
||||
|
||||
TestRequest(
|
||||
const FIX::TestReqID& aTestReqID )
|
||||
: Message(MsgType())
|
||||
{
|
||||
set(aTestReqID);
|
||||
}
|
||||
|
||||
FIELD_SET(*this, FIX::TestReqID);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user