8 #include <system/collections/ilist.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 namespace Connectivity
21 class MpdCalendarMapper;
22 class MspCalendarMapper;
29 class Mpp12CalendarWriter;
30 class Mpp9CalendarWriter;
31 class MPP9DefaultWeekWorkingDaysReader;
33 class MppWeekDayReader;
41 class ProjectCalendarsMapper;
61 template <
typename>
class IComparer;
62 template <
typename>
class IEnumerator;
63 template <
typename>
class List;
75 class ASPOSE_TASKS_SHARED_CLASS
WeekDayCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::WeekDay>>
78 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::WeekDay>> BaseType;
80 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
81 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
85 friend class Aspose::Tasks::Connectivity::MpdCalendarMapper;
86 friend class Aspose::Tasks::Connectivity::MspCalendarMapper;
87 friend class Aspose::Tasks::IO::MSProject::MPP9DefaultWeekWorkingDaysReader;
88 friend class Aspose::Tasks::IO::MSProject::MPPReader;
89 friend class Aspose::Tasks::IO::MSProject::MppWeekDayReader;
90 friend class Aspose::Tasks::IO::MSProject::Mpp12CalendarWriter;
91 friend class Aspose::Tasks::IO::MSProject::Mpp9CalendarWriter;
92 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectCalendarsMapper;
93 friend class Aspose::Tasks::Saving::MpxWriter;
101 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
107 ASPOSE_TASKS_SHARED_API System::SharedPtr<WeekDay> idx_get(int32_t index)
const override;
112 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<WeekDay> value)
override;
118 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<WeekDay>>> GetEnumerator()
override;
123 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<WeekDay>& item)
override;
128 ASPOSE_TASKS_SHARED_API
void RemoveAt(int32_t index)
override;
134 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<WeekDay>& item)
const override;
140 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<WeekDay>> array, int32_t arrayIndex)
override;
145 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<WeekDay>>> ToList();
149 ASPOSE_TASKS_SHARED_API
void Clear()
override;
155 ASPOSE_TASKS_SHARED_API int32_t IndexOf(
const System::SharedPtr<WeekDay>& item)
const override;
161 ASPOSE_TASKS_SHARED_API
void Insert(int32_t index,
const System::SharedPtr<WeekDay>& item)
override;
167 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<WeekDay>& item)
override;
171 ASPOSE_TASKS_SHARED_API
WeekDayCollection(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<WeekDay>>>& weekDays);
173 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(WeekDayCollection, CODEPORTING_ARGS(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<WeekDay>>>& weekDays));
175 ASPOSE_TASKS_SHARED_API WeekDayCollection();
177 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(WeekDayCollection, CODEPORTING_ARGS());
178 ASPOSE_TASKS_SHARED_API
void Sort(int32_t index, int32_t count,
const System::SharedPtr<System::Collections::Generic::IComparer<System::SharedPtr<WeekDay>>>& comparer);
179 ASPOSE_TASKS_SHARED_API
bool HasWork();
180 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<WeekDay>& GetByDayType(DayType dayType);
181 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<WeekDay>& GetByDayType(int32_t dayType);
183 virtual ASPOSE_TASKS_SHARED_API ~WeekDayCollection();
185 #ifdef ASPOSE_GET_SHARED_MEMBERS
186 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
192 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<WeekDay>>> weekDays;
193 System::ArrayPtr<System::SharedPtr<WeekDay>> weekDayTypes;
195 bool get_IsReadOnly()
const override;
197 void AddWeekDayType(
const System::SharedPtr<WeekDay>& wd);
198 void RemoveWeekDayType(
const System::SharedPtr<WeekDay>& wd);
Represents a collection of WeekDay objects.
Definition: WeekDayCollection.h:75
Represent WorkWeek class
Definition: WorkWeek.h:29
Represents a calendar used in a project.
Definition: Calendar.h:297
Represents a project.
Definition: Project.h:551