B2BITS FIX Antenna C++  2.29.0
Public Types | Public Member Functions | List of all members
Engine::SessionsController Class Referenceabstract

Abstract class(interface) that introduces API contract of sessions controller. More...

#include <B2BITS_SessionsController.h>

+ Inheritance diagram for Engine::SessionsController:
+ Collaboration diagram for Engine::SessionsController:

Public Types

typedef std::set< Engine::SessionIdSessions
 Set of sessions registered. More...
 

Public Member Functions

virtual void connectSession (const Engine::SessionId &sessionId)=0
 Connects session. More...
 
virtual void disconnectSession (const Engine::SessionId &sessionId)=0
 Disconnects session. More...
 
virtual Sessions getRegisteredSessions () const =0
 Returns set of sessions registered. More...
 
virtual void startSession (const Engine::SessionId &sessionId)=0
 Starts session. More...
 
virtual void stopSession (const Engine::SessionId &sessionId)=0
 Stops session. More...
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter. More...
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter. More...
 
 ReferenceCounter () throw ()
 Constructor. More...
 
virtual long release () const throw ()
 Decrements reference counter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Utils::ReferenceCounter
long decrement () const throw ()
 Decrements counter and returns new counter value. More...
 
long increment () const throw ()
 Increments counter and returns new counter value. More...
 
virtual ~ReferenceCounter ()
 Destructor. More...
 

Detailed Description

Abstract class(interface) that introduces API contract of sessions controller.

Member Typedef Documentation

◆ Sessions

Set of sessions registered.

Member Function Documentation

◆ connectSession()

virtual void Engine::SessionsController::connectSession ( const Engine::SessionId sessionId)
pure virtual

Connects session.

Parameters
sessionId- id of the session to connect.

Implemented in Engine::FixEngineSessionsController.

◆ disconnectSession()

virtual void Engine::SessionsController::disconnectSession ( const Engine::SessionId sessionId)
pure virtual

Disconnects session.

Parameters
sessionId- id of the session to disconnect.

Implemented in Engine::FixEngineSessionsController.

◆ getRegisteredSessions()

virtual Sessions Engine::SessionsController::getRegisteredSessions ( ) const
pure virtual

Returns set of sessions registered.

Implemented in Engine::FixEngineSessionsController.

◆ startSession()

virtual void Engine::SessionsController::startSession ( const Engine::SessionId sessionId)
pure virtual

Starts session.

Parameters
sessionId- id of the session to start.

Implemented in Engine::FixEngineSessionsController.

◆ stopSession()

virtual void Engine::SessionsController::stopSession ( const Engine::SessionId sessionId)
pure virtual

Stops session.

Parameters
sessionId- id of the session to stop.

Implemented in Engine::FixEngineSessionsController.