8 #include <system/string.h>
9 #include <system/date_time.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 class CalendarExceptionCalculator;
20 class CalendarExceptionCollection;
21 class CalendarExceptionCollectionWithCache;
22 class CalendarExceptionDatesCalculator;
23 enum class CalendarExceptionType;
24 class DayTypeCollection;
29 class HtmlCalendarExceptionsReader;
33 class Mpp12CalendarWriter;
34 class Mpp12ExceptionReader;
38 class ExceptionNodeReader;
39 class ExceptionNodeWriter;
43 enum class MonthItemType;
44 enum class MonthPosition;
47 class HtmlCalendarExceptionTable;
49 class TimeScaledExceptions;
50 class WorkingTimeCollection;
59 template <
typename>
class IEnumerable;
75 typedef System::Object BaseType;
77 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
78 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
81 friend class Aspose::Tasks::CalendarExceptionCalculator;
83 friend class Aspose::Tasks::CalendarExceptionCollectionWithCache;
84 friend class Aspose::Tasks::CalendarExceptionDatesCalculator;
85 friend class Aspose::Tasks::IO::Html::HtmlCalendarExceptionsReader;
86 friend class Aspose::Tasks::IO::MSProject::Mpp12ExceptionReader;
87 friend class Aspose::Tasks::IO::MSProject::Mpp12CalendarWriter;
88 friend class Aspose::Tasks::IO::Xml::ExceptionNodeReader;
89 friend class Aspose::Tasks::IO::Xml::ExceptionNodeWriter;
90 friend class Aspose::Tasks::Saving::HtmlCalendarExceptionTable;
91 friend class Aspose::Tasks::TimeScaledExceptions;
99 ASPOSE_TASKS_SHARED_API
bool get_EnteredByOccurrences()
const;
104 ASPOSE_TASKS_SHARED_API
void set_EnteredByOccurrences(
bool value);
108 ASPOSE_TASKS_SHARED_API System::DateTime get_FromDate()
const;
112 ASPOSE_TASKS_SHARED_API
void set_FromDate(System::DateTime value);
116 ASPOSE_TASKS_SHARED_API System::DateTime get_ToDate()
const;
120 ASPOSE_TASKS_SHARED_API
void set_ToDate(System::DateTime value);
124 ASPOSE_TASKS_SHARED_API int32_t get_Occurrences()
const;
128 ASPOSE_TASKS_SHARED_API
void set_Occurrences(int32_t value);
132 ASPOSE_TASKS_SHARED_API System::String get_Name()
const;
136 ASPOSE_TASKS_SHARED_API
void set_Name(
const System::String& value);
140 ASPOSE_TASKS_SHARED_API CalendarExceptionType get_Type()
const;
144 ASPOSE_TASKS_SHARED_API
void set_Type(CalendarExceptionType value);
148 ASPOSE_TASKS_SHARED_API int32_t get_Period()
const;
152 ASPOSE_TASKS_SHARED_API
void set_Period(int32_t value);
157 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<DayTypeCollection>& get_DaysOfWeek()
const;
161 ASPOSE_TASKS_SHARED_API MonthItemType get_MonthItem()
const;
165 ASPOSE_TASKS_SHARED_API
void set_MonthItem(MonthItemType value);
169 ASPOSE_TASKS_SHARED_API Aspose::Tasks::MonthPosition get_MonthPosition()
const;
173 ASPOSE_TASKS_SHARED_API
void set_MonthPosition(Aspose::Tasks::MonthPosition value);
177 ASPOSE_TASKS_SHARED_API Aspose::Tasks::Month get_Month()
const;
181 ASPOSE_TASKS_SHARED_API
void set_Month(Aspose::Tasks::Month value);
185 ASPOSE_TASKS_SHARED_API int32_t get_MonthDay()
const;
189 ASPOSE_TASKS_SHARED_API
void set_MonthDay(int32_t value);
193 ASPOSE_TASKS_SHARED_API
bool get_DayWorking()
const;
197 ASPOSE_TASKS_SHARED_API
void set_DayWorking(
bool value);
205 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<WorkingTimeCollection>& get_WorkingTimes()
const;
213 ASPOSE_TASKS_SHARED_API
void set_WorkingTimes(
const System::SharedPtr<WorkingTimeCollection>& value);
217 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Calendar>& get_ParentCalendar()
const;
227 ASPOSE_TASKS_SHARED_API
void Delete();
233 ASPOSE_TASKS_SHARED_API
bool CheckException(System::DateTime dt);
238 ASPOSE_TASKS_SHARED_API System::TimeSpan GetWorkingTime();
243 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerable<System::DateTime>> GetExceptionDates();
251 ASPOSE_TASKS_SHARED_API
void set_DaysOfWeek(
const System::SharedPtr<DayTypeCollection>& value);
255 ASPOSE_TASKS_SHARED_API
void set_ParentCalendar(
const System::SharedPtr<Calendar>& value);
256 ASPOSE_TASKS_SHARED_API
bool get_IsUnresolvedTimephasedIntervalException()
const;
257 ASPOSE_TASKS_SHARED_API
void set_IsUnresolvedTimephasedIntervalException(
bool value);
262 ASPOSE_TASKS_SHARED_API CalendarException(
const System::SharedPtr<WorkingTimeCollection>& workingTimeCollection);
264 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(CalendarException, CODEPORTING_ARGS(
const System::SharedPtr<WorkingTimeCollection>& workingTimeCollection));
265 static ASPOSE_TASKS_SHARED_API System::SharedPtr<CalendarException> CreateTimescaledWorkingIntervalException(System::DateTime start, System::TimeSpan end);
271 ASPOSE_TASKS_SHARED_API
bool CheckExceptionOnDate(System::DateTime dt);
273 virtual ASPOSE_TASKS_SHARED_API ~CalendarException();
275 #ifdef ASPOSE_GET_SHARED_MEMBERS
276 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
282 static const int32_t MaxNameLength;
285 bool pr_EnteredByOccurrences;
286 System::DateTime pr_FromDate;
287 System::DateTime pr_ToDate;
288 CalendarExceptionType pr_Type;
290 System::SharedPtr<DayTypeCollection> pr_DaysOfWeek;
291 MonthItemType pr_MonthItem;
292 Aspose::Tasks::MonthPosition pr_MonthPosition;
293 Aspose::Tasks::Month pr_Month;
296 System::SharedPtr<WorkingTimeCollection> pr_WorkingTimes;
297 System::WeakPtr<Calendar> pr_ParentCalendar;
298 bool pr_IsUnresolvedTimephasedIntervalException;
Represents a collection of CalendarException objects.
Definition: CalendarExceptionCollection.h:56
Represents a calendar used in a project.
Definition: Calendar.h:297
Represent exceptional time periods in a calendar.
Definition: CalendarException.h:72