B2BITS FIX Antenna C++  2.29.0
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. More...
 
SessionsControllerPtr getSessionsController () const
 Returns sessions controller instance used. More...
 
virtual void onTimeEvent (const System::SchedulerTimeEvent &hitEvent, const Engine::TZTimeHelper::UTCTimestamp &timestamp)
 Implements System::Schedule API contract callback routine. More...
 
 SessionsSchedule (const std::string &scheduleId, const System::ScheduleTimelinePtr &timelinePtr, const SessionsControllerPtr &sessionsControllerPtr, SessionsScheduleManager *pScheduleManager=NULL)
 Constructor. More...
 
void setSessionsController (const SessionsControllerPtr &sessionsControllerPtr)
 Sets sessions controller instance used. More...
 
virtual ~SessionsSchedule ()
 
- Public Member Functions inherited from System::Schedule
std::string getScheduleId () const
 Returns Schedule id. More...
 
ScheduleTimelinePtr getScheduleTimeline () const
 Returns smart pointer to events generator. More...
 
 Schedule (const std::string &scheduleId, const ScheduleTimelinePtr &timelinePtr)
 Constructor. 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

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.