Stride Reference Manual  - generated for commit 9643b11
DaysOffNone.h
Go to the documentation of this file.
1 /*
2  * This is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * any later version.
6  * The software is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  * You should have received a copy of the GNU General Public License
11  * along with the software. If not, see <http://www.gnu.org/licenses/>.
12  *
13  * Copyright 2017, Kuylen E, Willem L, Broeckhove J
14  */
15 
21 #include "calendar/Calendar.h"
23 
24 #pragma once
25 
26 namespace stride {
27 
32 {
33 public:
35  explicit DaysOffNone(const std::shared_ptr<Calendar>&) {}
36 
38  bool IsWorkOff() override { return false; }
39 
41  bool IsSchoolOff() override { return false; }
42 };
43 
44 } // namespace stride
Interface definition.
Interface for DaysOff classes.
No days off work or school.
Definition: DaysOffNone.h:31
DaysOffNone(const std::shared_ptr< Calendar > &)
Initialize calendar.
Definition: DaysOffNone.h:35
bool IsWorkOff() override
See DaysOffInterface.
Definition: DaysOffNone.h:38
bool IsSchoolOff() override
See DaysOffInterface.
Definition: DaysOffNone.h:41
Header file for the Calendar class.
Namespace for the simulator and related classes.
Definition: Calendar.cpp:28