-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendarDate.h
34 lines (30 loc) · 1.59 KB
/
calendarDate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
class CalendarDate
{
public:
CalendarDate();
~CalendarDate();
private:
/** Identifies a set of dates when a service exception occurs for one or more routes. Each (service_id, date) pair
* can only appear once in calendar_dates.txt if using calendar.txt and calendar_dates.txt in conjunction. If a
* service_id value appears in both calendar.txt and calendar_dates.txt, the information in calendar_dates.txt
* modifies the service information specified in calendar.txt. */
/** ID referencing calendar.service_id or ID */ int service_id; /// Required
/** Date when service exception occurs. */
/** Date */ int date; /// Required
/** Indicates whether service is available on the date specified in the date field. Valid options are:
*
* 1 - Service has been added for the specified date.
* 2 - Service has been removed for the specified date.
*
* Example: Suppose a route has one set of trips available on holidays and another set of trips available on all
* other days. One service_id could correspond to the regular service schedule and another service_id could
* correspond to the holiday schedule. For a particular holiday, the calendar_dates.txt file could be used to add
* the holiday to the holiday service_id and to remove the holiday from the regular service_id schedule.*/
enum class exception_type_enum
{
Added = 1, /// Service has been added for the specified date.
Removed = 2, /// Service has been removed for the specified date.
};
exception_type_enum exception_type; /// Required
};