B2BITS FIX Antenna C++ 2.33.0
|
Implementation of System::Schedule that allows to set SessionsScheduleManager as callbacks sink. More...
#include <B2BITS_SessionsScheduler.h>
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 ×tamp) |
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. | |
Implementation of System::Schedule that allows to set SessionsScheduleManager as callbacks sink.
Event tags used by SessionsSchedule.
Enumerator | |
---|---|
SessionsSchedule_TradePeriodBeginEvent | Trade period begin event. |
SessionsSchedule_TradePeriodEndEvent | Trade period end event. |
Engine::SessionsSchedule::SessionsSchedule | ( | const std::string & | scheduleId, |
const System::ScheduleTimelinePtr & | timelinePtr, | ||
const SessionsControllerPtr & | sessionsControllerPtr, | ||
SessionsScheduleManager * | pScheduleManager = NULL ) |
Constructor.
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). |
|
virtual |
void Engine::SessionsSchedule::attachScheduleManager | ( | SessionsScheduleManager * | pScheduleManager | ) |
Attachs SessionsScheduleManager instance as callback sink.
pScheduleManager | - pointer to SessionsScheduleManager instance to serve as callback sink. Pass NULL to detach previously attached instance. |
SessionsControllerPtr Engine::SessionsSchedule::getSessionsController | ( | ) | const |
Returns sessions controller instance used.
|
virtual |
Implements System::Schedule API contract callback routine.
Implements System::Schedule.
void Engine::SessionsSchedule::setSessionsController | ( | const SessionsControllerPtr & | sessionsControllerPtr | ) |
Sets sessions controller instance used.
sessionsControllerPtr | - sessions controller instance pointer. |