#pragma once #include "lib/jetfix/common/OutFIXPtr.h" #include "lib/orderman/orderman_utils/orderman_common.h" #include "lib/mercury/events/Event.h" #include "lib/mercury/synopsis/CacheAll.h" namespace bts { namespace orderman { class OutFIXMsgEvent : public mercury::Event { public: using Tag = GatewayName; // there is no need to store synopsis for this event because no one // should be sending fix events (OutFIXMsgEvent) until they receive // an event from the FIX gateway regarding the status of the FIX // connection. Receipt of this connection event guarantees to // potential publishers of OutFIXMsgEvent that the gateway is // already subscribed to OutFIXMsgEvent and so no events will be // missed. using SynopsisPolicy = mercury::NoSynopsis; OutFIXMsgEvent (jetfix::OutFIXPtr const&fix,std::vector const&traces) : msg(fix),trace(traces[0]) {} jetfix::OutFIXPtr msg; PerfTrace trace; }; }}