Leosac
0.8.0
Open Source Access Control
|
A schedule is simply a list of time frame (SingleTimeFrame) with a name. More...
#include <Schedule.hpp>
Public Member Functions | |
Schedule (const std::string &sched_name="") | |
virtual | ~Schedule ()=default |
Schedule (const Schedule &)=default | |
const std::string & | name () const override |
Retrieve the name of the schedule. More... | |
bool | is_in_schedule (const std::chrono::system_clock::time_point &tp) const override |
Check whether or not the given time point can be found in the schedule. More... | |
void | add_timeframe (const SingleTimeFrame &tf) override |
Add the given timeframe to this schedule;. More... | |
const std::string & | description () const override |
void | name (const std::string &) override |
void | description (const std::string &) override |
void | clear_timeframes () override |
Remove all the timeframes from this schedule. More... | |
ScheduleId | id () const override |
std::vector< SingleTimeFrame > | timeframes () const override |
Retrieves the list of timesframes that compose this schedule. More... | |
void | add_mapping (const Tools::ScheduleMappingPtr &map) override |
void | clear_mapping () override |
std::vector< ScheduleMappingPtr > | mapping () const override |
size_t | odb_version () const override |
Public Member Functions inherited from Leosac::Tools::ISchedule | |
virtual | ~ISchedule ()=default |
Private Attributes | |
ScheduleId | id_ |
std::vector< SingleTimeFrame > | timeframes_ |
std::string | name_ |
std::string | description_ |
std::vector< Tools::ScheduleMappingPtr > | mapping_ |
size_t | odb_version_ |
Friends | |
class | odb::access |
class | ::Leosac::TestAccess |
A schedule is simply a list of time frame (SingleTimeFrame) with a name.
Definition at line 41 of file Schedule.hpp.
Schedule::Schedule | ( | const std::string & | sched_name = "" | ) |
Definition at line 27 of file Schedule.cpp.
|
virtualdefault |
|
default |
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 89 of file Schedule.cpp.
|
overridevirtual |
Add the given timeframe to this schedule;.
Implements Leosac::Tools::ISchedule.
Definition at line 43 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 96 of file Schedule.cpp.
|
overridevirtual |
Remove all the timeframes from this schedule.
Implements Leosac::Tools::ISchedule.
Definition at line 84 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 53 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 79 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 58 of file Schedule.cpp.
|
overridevirtual |
Check whether or not the given time point can be found in the schedule.
Implements Leosac::Tools::ISchedule.
Definition at line 33 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 101 of file Schedule.cpp.
|
overridevirtual |
Retrieve the name of the schedule.
Implements Leosac::Tools::ISchedule.
Definition at line 48 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 73 of file Schedule.cpp.
|
overridevirtual |
Implements Leosac::Tools::ISchedule.
Definition at line 68 of file Schedule.cpp.
|
overridevirtual |
Retrieves the list of timesframes that compose this schedule.
Implements Leosac::Tools::ISchedule.
Definition at line 63 of file Schedule.cpp.
|
friend |
Definition at line 77 of file Schedule.hpp.
|
friend |
Definition at line 76 of file Schedule.hpp.
|
private |
Definition at line 88 of file Schedule.hpp.
|
private |
Definition at line 80 of file Schedule.hpp.
|
private |
Definition at line 91 of file Schedule.hpp.
|
private |
Definition at line 86 of file Schedule.hpp.
|
private |
Definition at line 94 of file Schedule.hpp.
|
private |
Definition at line 83 of file Schedule.hpp.