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;
120 ASPOSE_TASKS_SHARED_API
void set_ToDate(System::DateTime 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);
157 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<DayTypeCollection>&
get_DaysOfWeek()
const;
177 ASPOSE_TASKS_SHARED_API Aspose::Tasks::Month
get_Month()
const;
181 ASPOSE_TASKS_SHARED_API
void set_Month(Aspose::Tasks::Month 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);
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_IsImplicitWorkingTimeException()
const;
257 ASPOSE_TASKS_SHARED_API
bool get_IsUnresolvedTimephasedIntervalException()
const;
258 ASPOSE_TASKS_SHARED_API
void set_IsUnresolvedTimephasedIntervalException(
bool value);
259 static ASPOSE_TASKS_SHARED_API System::SharedPtr<CalendarException> get_ImplicitWorkingTimeException();
264 ASPOSE_TASKS_SHARED_API
CalendarException(
const System::SharedPtr<WorkingTimeCollection>& workingTimeCollection);
266 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
CalendarException, CODEPORTING_ARGS(
const System::SharedPtr<WorkingTimeCollection>& workingTimeCollection));
267 static ASPOSE_TASKS_SHARED_API System::SharedPtr<CalendarException> CreateTimescaledWorkingIntervalException(System::DateTime start, System::TimeSpan end);
273 ASPOSE_TASKS_SHARED_API
bool CheckExceptionOnDate(System::DateTime dt);
277 #ifdef ASPOSE_GET_SHARED_MEMBERS
278 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
284 static const int32_t MaxNameLength;
287 bool isImplicitWorkingTimeException;
289 static System::SharedPtr<CalendarException>& implicitWorkingTimeExceptionInstance();
291 bool pr_EnteredByOccurrences;
292 System::DateTime pr_FromDate;
293 System::DateTime pr_ToDate;
294 CalendarExceptionType pr_Type;
296 System::SharedPtr<DayTypeCollection> pr_DaysOfWeek;
297 MonthItemType pr_MonthItem;
298 Aspose::Tasks::MonthPosition pr_MonthPosition;
299 Aspose::Tasks::Month pr_Month;
302 System::SharedPtr<WorkingTimeCollection> pr_WorkingTimes;
303 System::WeakPtr<Calendar> pr_ParentCalendar;
304 bool pr_IsUnresolvedTimephasedIntervalException;
Represents a collection of CalendarException objects.
Definition: CalendarExceptionCollection.h:57
Represent exceptional time periods in a calendar.
Definition: CalendarException.h:73
void set_DayWorking(bool value)
Sets a value indicating whether the specified date or day type is working.
CalendarException()
Initializes a new instance of the CalendarException class.
MonthItemType get_MonthItem() const
Gets the month item for which an exception recurrence is scheduled.
void set_Month(Aspose::Tasks::Month value)
Sets the month for which an exception recurrence is scheduled.
System::SharedPtr< System::Collections::Generic::IEnumerable< System::DateTime > > GetExceptionDates()
Returns dates on which the calendar exception is applicable.
void set_Type(CalendarExceptionType value)
Sets the exception type.
bool get_EnteredByOccurrences() const
Gets a value indicating whether the range of recurrence is defined by entering a number of occurrence...
System::String get_Name() const
Gets the name of the exception.
const System::SharedPtr< WorkingTimeCollection > & get_WorkingTimes() const
Gets the WorkingTimeCollection object. The collection of working times that defines the time worked o...
System::DateTime get_ToDate() const
Gets the end of the exception time.
Aspose::Tasks::MonthPosition get_MonthPosition() const
Gets the position of a month item within a month.
Aspose::Tasks::Month get_Month() const
Gets the month for which an exception recurrence is scheduled.
System::TimeSpan GetWorkingTime()
Returns the working time for a calendar exception.
void set_WorkingTimes(const System::SharedPtr< WorkingTimeCollection > &value)
Sets the WorkingTimeCollection object. The collection of working times that defines the time worked o...
System::DateTime get_FromDate() const
Gets the beginning of the exception time.
void set_MonthPosition(Aspose::Tasks::MonthPosition value)
Sets the position of a month item within a month.
int32_t get_Period() const
Gets the period of recurrence for the exception.
void set_Occurrences(int32_t value)
Sets the number of occurrences for which the calendar exception is valid.
void set_EnteredByOccurrences(bool value)
Sets a value indicating whether the range of recurrence is defined by entering a number of occurrence...
const System::SharedPtr< DayTypeCollection > & get_DaysOfWeek() const
Gets the DayTypeCollection for this object. The days of the week on which the exception is valid.
void set_Name(const System::String &value)
Sets the name of the exception.
bool get_DayWorking() const
Gets a value indicating whether the specified date or day type is working.
void set_ToDate(System::DateTime value)
Sets the end of the exception time.
void Delete()
Deletes the Exception instance from parent calendar CalendarExceptionCollection object.
int32_t get_MonthDay() const
Gets the day of a month on which an exception recurrence is scheduled.
void set_MonthDay(int32_t value)
Sets the day of a month on which an exception recurrence is scheduled.
bool CheckException(System::DateTime dt)
Returns true if the specified instance of the DateTime struct is the exception day.
const System::SharedPtr< Calendar > & get_ParentCalendar() const
Gets the parent calendar for this object.
int32_t get_Occurrences() const
Gets the number of occurrences for which the calendar exception is valid.
CalendarExceptionType get_Type() const
Gets the exception type.
void set_MonthItem(MonthItemType value)
Sets the month item for which an exception recurrence is scheduled.
void set_Period(int32_t value)
Sets the period of recurrence for the exception.
void set_FromDate(System::DateTime value)
Sets the beginning of the exception time.
Represents a calendar used in a project.
Definition: Calendar.h:298