8 #include <system/date_time.h>
9 #include <system/collections/ilist.h>
10 #include <system/array.h>
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
20 class CalendarException;
21 class CalendarExceptionCollectionWithCache;
26 class Mpp12ExceptionReader;
27 class Mpp9ExceptionReader;
31 class ExceptionNodeReader;
42 template <
typename>
class IEnumerable;
43 template <
typename>
class IEnumerator;
44 template <
typename>
class List;
56 class ASPOSE_TASKS_SHARED_CLASS
CalendarExceptionCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::CalendarException>>
59 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::CalendarException>> BaseType;
61 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
62 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
64 friend class Aspose::Tasks::CalendarExceptionCollectionWithCache;
65 friend class Aspose::Tasks::IO::MSProject::Mpp12ExceptionReader;
66 friend class Aspose::Tasks::IO::MSProject::Mpp9ExceptionReader;
67 friend class Aspose::Tasks::IO::Xml::ExceptionNodeReader;
74 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar> get_ParentCalendar()
const;
78 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
85 ASPOSE_TASKS_SHARED_API System::SharedPtr<CalendarException> idx_get(int32_t index)
const override;
91 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<CalendarException> value)
override;
97 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<CalendarException>>> ToList();
102 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<CalendarException>>> GetEnumerator()
override;
107 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<CalendarException>& item)
override;
114 ASPOSE_TASKS_SHARED_API
void AddRange(
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<CalendarException>>>& exceptionList);
120 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<CalendarException>& item)
override;
124 ASPOSE_TASKS_SHARED_API
void Clear()
override;
128 ASPOSE_TASKS_SHARED_API System::DateTime get_MinExceptionDate()
const;
129 ASPOSE_TASKS_SHARED_API System::DateTime get_MaxExceptionDate()
const;
133 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(CalendarExceptionCollection, CODEPORTING_ARGS(
const System::SharedPtr<Calendar>& parentCalendar));
135 ASPOSE_TASKS_SHARED_API CalendarExceptionCollection(
const System::SharedPtr<Calendar>& parentCalendar,
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<CalendarException>>>& exceptions);
137 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(CalendarExceptionCollection, CODEPORTING_ARGS(
const System::SharedPtr<Calendar>& parentCalendar,
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<CalendarException>>>& exceptions));
138 ASPOSE_TASKS_SHARED_API
void AddInternal(
const System::SharedPtr<CalendarException>& item,
bool performValidation);
140 virtual ASPOSE_TASKS_SHARED_API ~CalendarExceptionCollection();
142 #ifdef ASPOSE_GET_SHARED_MEMBERS
143 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
149 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<CalendarException>>> exceptions;
150 System::WeakPtr<Calendar> parentCalendar;
152 bool get_IsReadOnly()
const override;
154 System::DateTime pr_MinExceptionDate;
156 ASPOSE_TASKS_SHARED_API
void set_MinExceptionDate(System::DateTime value);
158 System::DateTime pr_MaxExceptionDate;
160 ASPOSE_TASKS_SHARED_API
void set_MaxExceptionDate(System::DateTime value);
162 void RemoveAt(int32_t index)
override;
163 bool Contains(
const System::SharedPtr<CalendarException>& item)
const override;
164 void CopyTo(System::ArrayPtr<System::SharedPtr<CalendarException>> array, int32_t arrayIndex)
override;
165 int32_t IndexOf(
const System::SharedPtr<CalendarException>& item)
const override;
166 void Insert(int32_t index,
const System::SharedPtr<CalendarException>& item)
override;
167 static void ValidateCalendarException(
const System::SharedPtr<CalendarException>& calendarException);
168 void CalculateMinMax();
Represents a collection of CalendarException objects.
Definition: CalendarExceptionCollection.h:56