Public Member Functions | Private Member Functions | Private Attributes | List of all members
FIX::ConnectorWrapper Class Reference

Handles events from SocketMonitor for client connections. More...

Inheritance diagram for FIX::ConnectorWrapper:
Inheritance graph
[legend]
Collaboration diagram for FIX::ConnectorWrapper:
Collaboration graph
[legend]

Public Member Functions

 ConnectorWrapper (SocketConnector &connector, SocketConnector::Strategy &strategy)
 
- Public Member Functions inherited from FIX::SocketMonitor::Strategy
virtual ~Strategy ()
 

Private Member Functions

void onConnect (SocketMonitor &, int socket)
 
void onWrite (SocketMonitor &, int socket)
 
void onEvent (SocketMonitor &, int socket)
 
void onError (SocketMonitor &, int socket)
 
void onError (SocketMonitor &)
 
void onTimeout (SocketMonitor &)
 

Private Attributes

SocketConnectorm_connector
 
SocketConnector::Strategym_strategy
 

Detailed Description

Handles events from SocketMonitor for client connections.

Definition at line 39 of file SocketConnector.cpp.

Constructor & Destructor Documentation

FIX::ConnectorWrapper::ConnectorWrapper ( SocketConnector connector,
SocketConnector::Strategy strategy 
)
inline

Definition at line 42 of file SocketConnector.cpp.

44 : m_connector( connector ), m_strategy( strategy ) {}
SocketConnector & m_connector
SocketConnector::Strategy & m_strategy

Member Function Documentation

void FIX::ConnectorWrapper::onConnect ( SocketMonitor ,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 47 of file SocketConnector.cpp.

References m_connector, m_strategy, and FIX::SocketConnector::Strategy::onConnect().

48  {
49  m_strategy.onConnect( m_connector, socket );
50  }
SocketConnector & m_connector
virtual void onConnect(SocketConnector &, int socket)=0
SocketConnector::Strategy & m_strategy
void FIX::ConnectorWrapper::onError ( SocketMonitor ,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 63 of file SocketConnector.cpp.

References m_connector, m_strategy, and FIX::SocketConnector::Strategy::onDisconnect().

64  {
66  }
SocketConnector & m_connector
virtual void onDisconnect(SocketConnector &, int socket)=0
SocketConnector::Strategy & m_strategy
void FIX::ConnectorWrapper::onError ( SocketMonitor )
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 68 of file SocketConnector.cpp.

References m_connector, m_strategy, and FIX::SocketConnector::Strategy::onError().

69  {
71  }
SocketConnector & m_connector
virtual void onError(SocketConnector &)=0
SocketConnector::Strategy & m_strategy
void FIX::ConnectorWrapper::onEvent ( SocketMonitor ,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 57 of file SocketConnector.cpp.

References m_connector, m_strategy, FIX::SocketConnector::Strategy::onData(), and FIX::SocketConnector::Strategy::onDisconnect().

58  {
59  if( !m_strategy.onData( m_connector, socket ) )
61  }
SocketConnector & m_connector
virtual bool onData(SocketConnector &, int socket)=0
virtual void onDisconnect(SocketConnector &, int socket)=0
SocketConnector::Strategy & m_strategy
void FIX::ConnectorWrapper::onTimeout ( SocketMonitor )
inlineprivatevirtual

Reimplemented from FIX::SocketMonitor::Strategy.

Definition at line 73 of file SocketConnector.cpp.

References m_connector, m_strategy, and FIX::SocketConnector::Strategy::onTimeout().

74  {
76  };
SocketConnector & m_connector
virtual void onTimeout(SocketConnector &)
SocketConnector::Strategy & m_strategy
void FIX::ConnectorWrapper::onWrite ( SocketMonitor ,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 52 of file SocketConnector.cpp.

References m_connector, m_strategy, and FIX::SocketConnector::Strategy::onWrite().

53  {
54  m_strategy.onWrite( m_connector, socket );
55  }
SocketConnector & m_connector
virtual void onWrite(SocketConnector &, int socket)=0
SocketConnector::Strategy & m_strategy

Member Data Documentation

SocketConnector& FIX::ConnectorWrapper::m_connector
private

Definition at line 76 of file SocketConnector.cpp.

Referenced by onConnect(), onError(), onEvent(), onTimeout(), and onWrite().

SocketConnector::Strategy& FIX::ConnectorWrapper::m_strategy
private

Definition at line 79 of file SocketConnector.cpp.

Referenced by onConnect(), onError(), onEvent(), onTimeout(), and onWrite().


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

Generated on Sat Mar 29 2014 15:13:35 for QuickFIX by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2001