1 #ifndef FIX41_NEWORDERSINGLE_H
2 #define FIX41_NEWORDERSINGLE_H
3 
4 #include "Message.h"
5 
6 namespace FIX41
7 {
8 
9   class NewOrderSingle : public Message
10   {
11   public:
NewOrderSingle()12     NewOrderSingle() : Message(MsgType()) {}
NewOrderSingle(const FIX::Message & m)13     NewOrderSingle(const FIX::Message& m) : Message(m) {}
NewOrderSingle(const Message & m)14     NewOrderSingle(const Message& m) : Message(m) {}
NewOrderSingle(const NewOrderSingle & m)15     NewOrderSingle(const NewOrderSingle& m) : Message(m) {}
MsgType()16     static FIX::MsgType MsgType() { return FIX::MsgType("D"); }
17 
NewOrderSingle(const FIX::ClOrdID & aClOrdID,const FIX::HandlInst & aHandlInst,const FIX::Symbol & aSymbol,const FIX::Side & aSide,const FIX::OrdType & aOrdType)18     NewOrderSingle(
19       const FIX::ClOrdID& aClOrdID,
20       const FIX::HandlInst& aHandlInst,
21       const FIX::Symbol& aSymbol,
22       const FIX::Side& aSide,
23       const FIX::OrdType& aOrdType )
24     : Message(MsgType())
25     {
26       set(aClOrdID);
27       set(aHandlInst);
28       set(aSymbol);
29       set(aSide);
30       set(aOrdType);
31     }
32 
33     FIELD_SET(*this, FIX::ClOrdID);
34     FIELD_SET(*this, FIX::ClientID);
35     FIELD_SET(*this, FIX::ExecBroker);
36     FIELD_SET(*this, FIX::Account);
37     FIELD_SET(*this, FIX::SettlmntTyp);
38     FIELD_SET(*this, FIX::FutSettDate);
39     FIELD_SET(*this, FIX::HandlInst);
40     FIELD_SET(*this, FIX::ExecInst);
41     FIELD_SET(*this, FIX::MinQty);
42     FIELD_SET(*this, FIX::MaxFloor);
43     FIELD_SET(*this, FIX::ExDestination);
44     FIELD_SET(*this, FIX::ProcessCode);
45     FIELD_SET(*this, FIX::Symbol);
46     FIELD_SET(*this, FIX::SymbolSfx);
47     FIELD_SET(*this, FIX::SecurityID);
48     FIELD_SET(*this, FIX::IDSource);
49     FIELD_SET(*this, FIX::SecurityType);
50     FIELD_SET(*this, FIX::MaturityMonthYear);
51     FIELD_SET(*this, FIX::MaturityDay);
52     FIELD_SET(*this, FIX::PutOrCall);
53     FIELD_SET(*this, FIX::StrikePrice);
54     FIELD_SET(*this, FIX::OptAttribute);
55     FIELD_SET(*this, FIX::SecurityExchange);
56     FIELD_SET(*this, FIX::Issuer);
57     FIELD_SET(*this, FIX::SecurityDesc);
58     FIELD_SET(*this, FIX::PrevClosePx);
59     FIELD_SET(*this, FIX::Side);
60     FIELD_SET(*this, FIX::LocateReqd);
61     FIELD_SET(*this, FIX::OrderQty);
62     FIELD_SET(*this, FIX::CashOrderQty);
63     FIELD_SET(*this, FIX::OrdType);
64     FIELD_SET(*this, FIX::Price);
65     FIELD_SET(*this, FIX::StopPx);
66     FIELD_SET(*this, FIX::Currency);
67     FIELD_SET(*this, FIX::IOIid);
68     FIELD_SET(*this, FIX::QuoteID);
69     FIELD_SET(*this, FIX::TimeInForce);
70     FIELD_SET(*this, FIX::ExpireTime);
71     FIELD_SET(*this, FIX::Commission);
72     FIELD_SET(*this, FIX::CommType);
73     FIELD_SET(*this, FIX::Rule80A);
74     FIELD_SET(*this, FIX::ForexReq);
75     FIELD_SET(*this, FIX::SettlCurrency);
76     FIELD_SET(*this, FIX::Text);
77     FIELD_SET(*this, FIX::FutSettDate2);
78     FIELD_SET(*this, FIX::OrderQty2);
79     FIELD_SET(*this, FIX::OpenClose);
80     FIELD_SET(*this, FIX::CoveredOrUncovered);
81     FIELD_SET(*this, FIX::CustomerOrFirm);
82     FIELD_SET(*this, FIX::MaxShow);
83     FIELD_SET(*this, FIX::PegDifference);
84   };
85 
86 }
87 
88 #endif
89