Classes Files

Wombat::MamdaCheckerHandler

More…

#include <MamdaCheckerHandler.h>

Public Functions

  Name
virtual void onSuccess(MamdaCheckerType checkType) =0
virtual void onInconclusive(MamdaCheckerType checkType, const char * reason) =0
virtual void onFailure(MamdaCheckerType checkType, const char * reason, const MamaMsg & msg) =0

Detailed Description

class Wombat::MamdaCheckerHandler;

MamdaCheckerHandler is an interface for applications that want to handle the results of the MamdaQuoteChecker and MamdaTradeChecker. Callback interfaces are provided for correct and erroneous checks.

Public Functions Documentation

function onSuccess

virtual void onSuccess(
    MamdaCheckerType checkType
) =0

Method invoked when a successful check is completed.

function onInconclusive

virtual void onInconclusive(
    MamdaCheckerType checkType,
    const char * reason
) =0

Method invoked when check is completed inconclusively. An attempt to check the order book may be inconclusive if the order book sequence numbers do not match up.

function onFailure

virtual void onFailure(
    MamdaCheckerType checkType,
    const char * reason,
    const MamaMsg & msg
) =0

Method invoked when a failed check is completed. The message provided, if non-NULL, is the one received for the snapshot or delta, depending upon the value of checkType.


Updated on 2023-03-31 at 15:29:57 +0100