fix8  version 1.4.0
Open Source C++ FIX Framework
tex_router_client Class Reference

Example client message router. Derives from fix8 generated router class. More...

#include <hftest.hpp>

Inheritance diagram for tex_router_client:
FIX8::TEX::Myfix_Router FIX8::TEX::Perf_Router FIX8::Router FIX8::Router

Public Member Functions

 tex_router_client (hf_session_client &session)
 
virtual bool operator() (const FIX8::TEX::ExecutionReport *msg)
 
 tex_router_client (myfix_session_client &session)
 
virtual bool operator() (const FIX8::TEX::ExecutionReport *msg) const
 
- Public Member Functions inherited from FIX8::TEX::Myfix_Router
 Myfix_Router ()
 
virtual ~Myfix_Router ()
 
virtual bool operator() (const class Message *msg) const
 
virtual bool operator() (const class Heartbeat *msg) const
 
virtual bool operator() (const class TestRequest *msg) const
 
virtual bool operator() (const class ResendRequest *msg) const
 
virtual bool operator() (const class Reject *msg) const
 
virtual bool operator() (const class SequenceReset *msg) const
 
virtual bool operator() (const class Logout *msg) const
 
virtual bool operator() (const class IOI *msg) const
 
virtual bool operator() (const class Advertisement *msg) const
 
virtual bool operator() (const class ExecutionReport *msg) const
 
virtual bool operator() (const class OrderCancelReject *msg) const
 
virtual bool operator() (const class Logon *msg) const
 
virtual bool operator() (const class DerivativeSecurityList *msg) const
 
virtual bool operator() (const class NewOrderMultileg *msg) const
 
virtual bool operator() (const class MultilegOrderCancelReplace *msg) const
 
virtual bool operator() (const class TradeCaptureReportRequest *msg) const
 
virtual bool operator() (const class TradeCaptureReport *msg) const
 
virtual bool operator() (const class OrderMassStatusRequest *msg) const
 
virtual bool operator() (const class QuoteRequestReject *msg) const
 
virtual bool operator() (const class RFQRequest *msg) const
 
virtual bool operator() (const class QuoteStatusReport *msg) const
 
virtual bool operator() (const class QuoteResponse *msg) const
 
virtual bool operator() (const class Confirmation *msg) const
 
virtual bool operator() (const class PositionMaintenanceRequest *msg) const
 
virtual bool operator() (const class PositionMaintenanceReport *msg) const
 
virtual bool operator() (const class RequestForPositions *msg) const
 
virtual bool operator() (const class RequestForPositionsAck *msg) const
 
virtual bool operator() (const class PositionReport *msg) const
 
virtual bool operator() (const class TradeCaptureReportRequestAck *msg) const
 
virtual bool operator() (const class TradeCaptureReportAck *msg) const
 
virtual bool operator() (const class AllocationReport *msg) const
 
virtual bool operator() (const class AllocationReportAck *msg) const
 
virtual bool operator() (const class ConfirmationAck *msg) const
 
virtual bool operator() (const class SettlementInstructionRequest *msg) const
 
virtual bool operator() (const class AssignmentReport *msg) const
 
virtual bool operator() (const class CollateralRequest *msg) const
 
virtual bool operator() (const class CollateralAssignment *msg) const
 
virtual bool operator() (const class CollateralResponse *msg) const
 
virtual bool operator() (const class News *msg) const
 
virtual bool operator() (const class CollateralReport *msg) const
 
virtual bool operator() (const class CollateralInquiry *msg) const
 
virtual bool operator() (const class NetworkCounterpartySystemStatusRequest *msg) const
 
virtual bool operator() (const class NetworkCounterpartySystemStatusResponse *msg) const
 
virtual bool operator() (const class UserRequest *msg) const
 
virtual bool operator() (const class UserResponse *msg) const
 
virtual bool operator() (const class CollateralInquiryAck *msg) const
 
virtual bool operator() (const class ConfirmationRequest *msg) const
 
virtual bool operator() (const class TradingSessionListRequest *msg) const
 
virtual bool operator() (const class TradingSessionList *msg) const
 
virtual bool operator() (const class SecurityListUpdateReport *msg) const
 
virtual bool operator() (const class AdjustedPositionReport *msg) const
 
virtual bool operator() (const class AllocationInstructionAlert *msg) const
 
virtual bool operator() (const class ExecutionAcknowledgement *msg) const
 
virtual bool operator() (const class ContraryIntentionReport *msg) const
 
virtual bool operator() (const class SecurityDefinitionUpdateReport *msg) const
 
virtual bool operator() (const class SettlementObligationReport *msg) const
 
virtual bool operator() (const class DerivativeSecurityListUpdateReport *msg) const
 
virtual bool operator() (const class TradingSessionListUpdateReport *msg) const
 
virtual bool operator() (const class MarketDefinitionRequest *msg) const
 
virtual bool operator() (const class MarketDefinition *msg) const
 
virtual bool operator() (const class MarketDefinitionUpdateReport *msg) const
 
virtual bool operator() (const class ApplicationMessageRequest *msg) const
 
virtual bool operator() (const class ApplicationMessageRequestAck *msg) const
 
virtual bool operator() (const class ApplicationMessageReport *msg) const
 
virtual bool operator() (const class OrderMassActionReport *msg) const
 
virtual bool operator() (const class Email *msg) const
 
virtual bool operator() (const class OrderMassActionRequest *msg) const
 
virtual bool operator() (const class UserNotification *msg) const
 
virtual bool operator() (const class StreamAssignmentRequest *msg) const
 
virtual bool operator() (const class StreamAssignmentReport *msg) const
 
virtual bool operator() (const class StreamAssignmentReportACK *msg) const
 
virtual bool operator() (const class PartyDetailsListRequest *msg) const
 
virtual bool operator() (const class PartyDetailsListReport *msg) const
 
virtual bool operator() (const class NewOrderSingle *msg) const
 
virtual bool operator() (const class NewOrderList *msg) const
 
virtual bool operator() (const class OrderCancelRequest *msg) const
 
virtual bool operator() (const class OrderCancelReplaceRequest *msg) const
 
virtual bool operator() (const class OrderStatusRequest *msg) const
 
virtual bool operator() (const class AllocationInstruction *msg) const
 
virtual bool operator() (const class ListCancelRequest *msg) const
 
virtual bool operator() (const class ListExecute *msg) const
 
virtual bool operator() (const class ListStatusRequest *msg) const
 
virtual bool operator() (const class ListStatus *msg) const
 
virtual bool operator() (const class AllocationInstructionAck *msg) const
 
virtual bool operator() (const class DontKnowTrade *msg) const
 
virtual bool operator() (const class QuoteRequest *msg) const
 
virtual bool operator() (const class Quote *msg) const
 
virtual bool operator() (const class SettlementInstructions *msg) const
 
virtual bool operator() (const class MarketDataRequest *msg) const
 
virtual bool operator() (const class MarketDataSnapshotFullRefresh *msg) const
 
virtual bool operator() (const class MarketDataIncrementalRefresh *msg) const
 
virtual bool operator() (const class MarketDataRequestReject *msg) const
 
virtual bool operator() (const class QuoteCancel *msg) const
 
virtual bool operator() (const class QuoteStatusRequest *msg) const
 
virtual bool operator() (const class MassQuoteAcknowledgement *msg) const
 
virtual bool operator() (const class SecurityDefinitionRequest *msg) const
 
virtual bool operator() (const class SecurityDefinition *msg) const
 
virtual bool operator() (const class SecurityStatusRequest *msg) const
 
virtual bool operator() (const class SecurityStatus *msg) const
 
virtual bool operator() (const class TradingSessionStatusRequest *msg) const
 
virtual bool operator() (const class TradingSessionStatus *msg) const
 
virtual bool operator() (const class MassQuote *msg) const
 
virtual bool operator() (const class BusinessMessageReject *msg) const
 
virtual bool operator() (const class BidRequest *msg) const
 
virtual bool operator() (const class BidResponse *msg) const
 
virtual bool operator() (const class ListStrikePrice *msg) const
 
virtual bool operator() (const class RegistrationInstructions *msg) const
 
virtual bool operator() (const class RegistrationInstructionsResponse *msg) const
 
virtual bool operator() (const class OrderMassCancelRequest *msg) const
 
virtual bool operator() (const class OrderMassCancelReport *msg) const
 
virtual bool operator() (const class NewOrderCross *msg) const
 
virtual bool operator() (const class CrossOrderCancelReplaceRequest *msg) const
 
virtual bool operator() (const class CrossOrderCancelRequest *msg) const
 
virtual bool operator() (const class SecurityTypeRequest *msg) const
 
virtual bool operator() (const class SecurityTypes *msg) const
 
virtual bool operator() (const class SecurityListRequest *msg) const
 
virtual bool operator() (const class SecurityList *msg) const
 
virtual bool operator() (const class DerivativeSecurityListRequest *msg) const
 
- Public Member Functions inherited from FIX8::Router
virtual ~Router ()
 Dtor. More...
 
virtual bool operator() (const Message *msg) const
 
virtual bool operator() (const Message *msg)
 
- Public Member Functions inherited from FIX8::TEX::Perf_Router
 Perf_Router ()
 
virtual ~Perf_Router ()
 
virtual bool operator() (const class Message *msg)
 
virtual bool operator() (const class Heartbeat *msg)
 
virtual bool operator() (const class TestRequest *msg)
 
virtual bool operator() (const class ResendRequest *msg)
 
virtual bool operator() (const class Reject *msg)
 
virtual bool operator() (const class SequenceReset *msg)
 
virtual bool operator() (const class Logout *msg)
 
virtual bool operator() (const class ExecutionReport *msg)
 
virtual bool operator() (const class Logon *msg)
 
virtual bool operator() (const class NewOrderSingle *msg)
 

Private Attributes

hf_session_client_session
 
myfix_session_client_session
 

Detailed Description

Example client message router. Derives from fix8 generated router class.

Your application must define a class similar to this in order to receive the appropriate callback when Message::process is called.

Definition at line 46 of file hftest.hpp.

Constructor & Destructor Documentation

tex_router_client::tex_router_client ( hf_session_client session)
inline

Ctor.

Parameters
sessionclient session

Definition at line 53 of file hftest.hpp.

53 : _session(session) {}
hf_session_client & _session
Definition: hftest.hpp:48
tex_router_client::tex_router_client ( myfix_session_client session)
inline

Ctor.

Parameters
sessionclient session

Definition at line 53 of file myfix.hpp.

53 : _session(session) {}
hf_session_client & _session
Definition: hftest.hpp:48

Member Function Documentation

bool tex_router_client::operator() ( const FIX8::TEX::ExecutionReport msg)
virtual

Execution report handler. Here is where you provide your own methods for the messages you wish to handle. Only those messages that are of interest to you need to be implemented.

Parameters
msgExecution report message session

Definition at line 655 of file hftest.cpp.

References update_count().

656 {
657  static int exrecv(0);
658  if (++exrecv % update_count == 0)
659  {
660  cout << '\r' << exrecv << " ExecutionReport msgs received ";
661  cout.flush();
662  }
663  return true;
664 }
unsigned update_count(5000)
bool tex_router_client::operator() ( const FIX8::TEX::ExecutionReport msg) const
virtual

Execution report handler. Here is where you provide your own methods for the messages you wish to handle. Only those messages that are of interest to you need to be implemented.

Parameters
msgExecution report message session

Definition at line 404 of file harness.cpp.

405 {
406  return true;
407 }

Member Data Documentation

hf_session_client& tex_router_client::_session
private

Definition at line 48 of file hftest.hpp.

myfix_session_client& tex_router_client::_session
private

Definition at line 48 of file myfix.hpp.


The documentation for this class was generated from the following files: