![]() |
Leosac
0.8.0
Open Source Access Control
|
This struct abstracts what we call a single time frame. More...
#include <SingleTimeFrame.hpp>
Public Member Functions | |
| SingleTimeFrame (int d, int sh, int sm, int eh, int em) | |
| Construct a SingleTimeFrame. More... | |
| SingleTimeFrame () | |
| SingleTimeFrame (const SingleTimeFrame &)=default | |
| bool | operator== (const SingleTimeFrame &o) const |
| bool | operator< (const SingleTimeFrame &o) const |
| bool | is_in_timeframe (const std::chrono::system_clock::time_point &tp) const |
| Is the given timepoint in the time frame ? More... | |
Public Attributes | |
| int | day |
| int | start_hour |
| int | start_min |
| int | end_hour |
| int | end_min |
This struct abstracts what we call a single time frame.
A single time frame represents a time slice in a single given day. It's comprised of:
Definition at line 38 of file SingleTimeFrame.hpp.
| Leosac::Tools::SingleTimeFrame::SingleTimeFrame | ( | int | d, |
| int | sh, | ||
| int | sm, | ||
| int | eh, | ||
| int | em | ||
| ) |
Construct a SingleTimeFrame.
| d | The day of the week, starts at 0 for monday. |
| sh | The starting hour. |
| sm | The starting minute. |
| eh | The ending hour. |
| em | The ending minute. |
Definition at line 28 of file SingleTimeFrame.cpp.
| Leosac::Tools::SingleTimeFrame::SingleTimeFrame | ( | ) |
Definition at line 37 of file SingleTimeFrame.cpp.
|
default |
| bool Leosac::Tools::SingleTimeFrame::is_in_timeframe | ( | const std::chrono::system_clock::time_point & | tp | ) | const |
Is the given timepoint in the time frame ?
Definition at line 46 of file SingleTimeFrame.cpp.
| bool Leosac::Tools::SingleTimeFrame::operator< | ( | const SingleTimeFrame & | o | ) | const |
Definition at line 71 of file SingleTimeFrame.cpp.
| bool Leosac::Tools::SingleTimeFrame::operator== | ( | const SingleTimeFrame & | o | ) | const |
Definition at line 65 of file SingleTimeFrame.cpp.
| int Leosac::Tools::SingleTimeFrame::day |
Definition at line 59 of file SingleTimeFrame.hpp.
| int Leosac::Tools::SingleTimeFrame::end_hour |
Definition at line 62 of file SingleTimeFrame.hpp.
| int Leosac::Tools::SingleTimeFrame::end_min |
Definition at line 63 of file SingleTimeFrame.hpp.
| int Leosac::Tools::SingleTimeFrame::start_hour |
Definition at line 60 of file SingleTimeFrame.hpp.
| int Leosac::Tools::SingleTimeFrame::start_min |
Definition at line 61 of file SingleTimeFrame.hpp.