I am working on implementing Initiator side for a broker FIX platform using QuickFix in C++. Their FIX spec provides the list of messages they support; Logon, Heartbeat and other messages.
MessageCracker (Fix 4.2) provides two overloads for same type. For example
virtual void onMessage( ResendRequest&, const FIX::SessionID& ) {}
and
virtual void onMessage( const ResendRequest&, const FIX::SessionID& ) {}
Edit:
I have a class that is derived from Application
and MessageCracker
and it calls crack(FIX::Message&)
from within toAdmin()
that results in calling onMessage()
(the version without const
).
My confusion was related to the point that which version of onMessage()
I should be overriding? The one with const FIX::Message&
or the other?