1 #ifndef FIX43_ALLOCATIONACK_H
2 #define FIX43_ALLOCATIONACK_H
3 
4 #include "Message.h"
5 
6 namespace FIX43
7 {
8 
9   class AllocationAck : public Message
10   {
11   public:
AllocationAck()12     AllocationAck() : Message(MsgType()) {}
AllocationAck(const FIX::Message & m)13     AllocationAck(const FIX::Message& m) : Message(m) {}
AllocationAck(const Message & m)14     AllocationAck(const Message& m) : Message(m) {}
AllocationAck(const AllocationAck & m)15     AllocationAck(const AllocationAck& m) : Message(m) {}
MsgType()16     static FIX::MsgType MsgType() { return FIX::MsgType("P"); }
17 
AllocationAck(const FIX::AllocID & aAllocID,const FIX::TradeDate & aTradeDate,const FIX::AllocStatus & aAllocStatus)18     AllocationAck(
19       const FIX::AllocID& aAllocID,
20       const FIX::TradeDate& aTradeDate,
21       const FIX::AllocStatus& aAllocStatus )
22     : Message(MsgType())
23     {
24       set(aAllocID);
25       set(aTradeDate);
26       set(aAllocStatus);
27     }
28 
29     FIELD_SET(*this, FIX::NoPartyIDs);
30     class NoPartyIDs: public FIX::Group
31     {
32     public:
NoPartyIDs()33     NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
34       FIELD_SET(*this, FIX::PartyID);
35       FIELD_SET(*this, FIX::PartyIDSource);
36       FIELD_SET(*this, FIX::PartyRole);
37       FIELD_SET(*this, FIX::PartySubID);
38     };
39     FIELD_SET(*this, FIX::AllocID);
40     FIELD_SET(*this, FIX::TradeDate);
41     FIELD_SET(*this, FIX::TransactTime);
42     FIELD_SET(*this, FIX::AllocStatus);
43     FIELD_SET(*this, FIX::AllocRejCode);
44     FIELD_SET(*this, FIX::Text);
45     FIELD_SET(*this, FIX::EncodedTextLen);
46     FIELD_SET(*this, FIX::EncodedText);
47     FIELD_SET(*this, FIX::LegalConfirm);
48   };
49 
50 }
51 
52 #endif
53