B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Engine::SessionsSchedule Class Reference

Implementation of System::Schedule that allows to set SessionsScheduleManager as callbacks sink. More...

#include <B2BITS_SessionsScheduler.h>

+ Inheritance diagram for Engine::SessionsSchedule:
+ Collaboration diagram for Engine::SessionsSchedule:

Public Types

enum  EventTags { SessionsSchedule_TradePeriodBeginEvent = 1 , SessionsSchedule_TradePeriodEndEvent }
 Event tags used by SessionsSchedule. More...
 

Public Member Functions

void attachScheduleManager (SessionsScheduleManager *pScheduleManager)
 Attachs SessionsScheduleManager instance as callback sink.
 
SessionsControllerPtr getSessionsController () const
 Returns sessions controller instance used.
 
virtual void onTimeEvent (const System::SchedulerTimeEvent &hitEvent, const Engine::TZTimeHelper::UTCTimestamp &timestamp)
 Implements System::Schedule API contract callback routine.
 
 SessionsSchedule (const std::string &scheduleId, const System::ScheduleTimelinePtr &timelinePtr, const SessionsControllerPtr &sessionsControllerPtr, SessionsScheduleManager *pScheduleManager=NULL)
 Constructor.
 
void setSessionsController (const SessionsControllerPtr &sessionsControllerPtr)
 Sets sessions controller instance used.
 
virtual ~SessionsSchedule ()
 
- Public Member Functions inherited from System::Schedule
std::string getScheduleId () const
 Returns Schedule id.
 
ScheduleTimelinePtr getScheduleTimeline () const
 Returns smart pointer to events generator.
 
 Schedule (const std::string &scheduleId, const ScheduleTimelinePtr &timelinePtr)
 Constructor.
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter.
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter.
 
 ReferenceCounter () throw ()
 Constructor.
 
virtual long release () const throw ()
 Decrements reference counter.
 

Additional Inherited Members

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

Detailed Description

Implementation of System::Schedule that allows to set SessionsScheduleManager as callbacks sink.

Member Enumeration Documentation

◆ EventTags

Event tags used by SessionsSchedule.

Enumerator
SessionsSchedule_TradePeriodBeginEvent 

Trade period begin event.

SessionsSchedule_TradePeriodEndEvent 

Trade period end event.

Constructor & Destructor Documentation

◆ SessionsSchedule()

Engine::SessionsSchedule::SessionsSchedule ( const std::string & scheduleId,
const System::ScheduleTimelinePtr & timelinePtr,
const SessionsControllerPtr & sessionsControllerPtr,
SessionsScheduleManager * pScheduleManager = NULL )

Constructor.

Parameters
scheduleId- schedule id.
timelinePtr- events generator instance pointer.
sessionsControllerPtr- sessions controller instance pointer.
pScheduleManager- pointer to SessionsScheduleManager instance to use as callbacks sink. If NULL no callbacks are possible. Execution plan is executed as is(as generated internally).

◆ ~SessionsSchedule()

virtual Engine::SessionsSchedule::~SessionsSchedule ( )
virtual

Member Function Documentation

◆ attachScheduleManager()

void Engine::SessionsSchedule::attachScheduleManager ( SessionsScheduleManager * pScheduleManager)

Attachs SessionsScheduleManager instance as callback sink.

Parameters
pScheduleManager- pointer to SessionsScheduleManager instance to serve as callback sink. Pass NULL to detach previously attached instance.

◆ getSessionsController()

SessionsControllerPtr Engine::SessionsSchedule::getSessionsController ( ) const

Returns sessions controller instance used.

◆ onTimeEvent()

virtual void Engine::SessionsSchedule::onTimeEvent ( const System::SchedulerTimeEvent & hitEvent,
const Engine::TZTimeHelper::UTCTimestamp & timestamp )
virtual

Implements System::Schedule API contract callback routine.

Implements System::Schedule.

◆ setSessionsController()

void Engine::SessionsSchedule::setSessionsController ( const SessionsControllerPtr & sessionsControllerPtr)

Sets sessions controller instance used.

Parameters
sessionsControllerPtr- sessions controller instance pointer.