B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
PeriodTimer Class Reference

#include <TimeUtils.h>

+ Collaboration diagram for PeriodTimer:

Public Member Functions

enum PeriodTimerState getEdgeTriggeredState ()
 
void init (bool enableTriggerNow, const Engine::UTCTimeOnly &periodStart, const Engine::UTCTimeOnly &periodEnd)
 
void init (bool enableTriggerNow, const Engine::UTCTimeOnly &periodStart, const Engine::UTCTimeOnly &periodEnd, const Engine::UTCTimeOnly &now)
 
bool isNowWithinPeriod ()
 
bool isWithinPeriod (const Engine::UTCTimeOnly &now)
 
 PeriodTimer ()
 
void tick (const Engine::UTCTimeOnly &now)
 

Public Attributes

bool initialized_
 
Engine::UTCTimeOnly periodEnd_
 
Engine::UTCTimeOnly periodStart_
 
enum PeriodTimerState state_
 
bool wasWithinPeriodOnLastTick_
 

Constructor & Destructor Documentation

PeriodTimer::PeriodTimer ( )
inline

Member Function Documentation

enum PeriodTimerState PeriodTimer::getEdgeTriggeredState ( )
inline
void PeriodTimer::init ( bool  enableTriggerNow,
const Engine::UTCTimeOnly periodStart,
const Engine::UTCTimeOnly periodEnd 
)
inline
void PeriodTimer::init ( bool  enableTriggerNow,
const Engine::UTCTimeOnly periodStart,
const Engine::UTCTimeOnly periodEnd,
const Engine::UTCTimeOnly now 
)
inline
bool PeriodTimer::isNowWithinPeriod ( )
inline
bool PeriodTimer::isWithinPeriod ( const Engine::UTCTimeOnly now)
inline
void PeriodTimer::tick ( const Engine::UTCTimeOnly now)
inline

Member Data Documentation

bool PeriodTimer::initialized_
Engine::UTCTimeOnly PeriodTimer::periodEnd_

Referenced by init(), isWithinPeriod(), and tick().

Engine::UTCTimeOnly PeriodTimer::periodStart_

Referenced by init(), isWithinPeriod(), and tick().

enum PeriodTimerState PeriodTimer::state_

Referenced by getEdgeTriggeredState(), init(), and tick().

bool PeriodTimer::wasWithinPeriodOnLastTick_

Referenced by init(), and tick().