Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cTimeSchedule Class Reference

#include <cTimeSchedule.h>

Public Member Functions

 cTimeSchedule ()
 
 cTimeSchedule (const char *pszText)
 
 ~cTimeSchedule ()
 
HRESULT SetRules (const char *pszText)
 
HRESULT AddRuleElem (cTimeScheduleElem *pElem)
 
bool IsActiveEval (const cTimeUnits &rTimeNow) const
 Is this true now? argument current time. More...
 
bool IsActiveEval (const cTimeInt &rTimeNow) const
 
 UNITTEST_FRIEND (cTimeSchedule)
 

Public Attributes

cTimeScheduleSet m_Rules
 Rules that apply to when this will happen. More...
 
cTimeInt m_tLast
 

Detailed Description

A Time schedule data block. Define a time when something is to happen. (bool result) e.g. Monday through Friday from 9 to 5 e.g. Easter e.g. Monday through Friday except April 1

Constructor & Destructor Documentation

◆ cTimeSchedule() [1/2]

GrayLib::cTimeSchedule::cTimeSchedule ( )

◆ cTimeSchedule() [2/2]

GrayLib::cTimeSchedule::cTimeSchedule ( const char *  pszText)

◆ ~cTimeSchedule()

GrayLib::cTimeSchedule::~cTimeSchedule ( )

Member Function Documentation

◆ AddRuleElem()

HRESULT GrayLib::cTimeSchedule::AddRuleElem ( cTimeScheduleElem pElem)

◆ IsActiveEval() [1/2]

bool GrayLib::cTimeSchedule::IsActiveEval ( const cTimeInt rTimeNow) const

is this rule true or false for the current time ?

◆ IsActiveEval() [2/2]

bool GrayLib::cTimeSchedule::IsActiveEval ( const cTimeUnits rTimeNow) const

Is this true now? argument current time.

◆ SetRules()

HRESULT GrayLib::cTimeSchedule::SetRules ( const char *  pszText)

◆ UNITTEST_FRIEND()

GrayLib::cTimeSchedule::UNITTEST_FRIEND ( cTimeSchedule  )

Member Data Documentation

◆ m_Rules

cTimeScheduleSet GrayLib::cTimeSchedule::m_Rules

Rules that apply to when this will happen.

◆ m_tLast

cTimeInt GrayLib::cTimeSchedule::m_tLast

The documentation for this class was generated from the following files: