8 #include <system/collections/ilist.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 namespace Connectivity
23 class PrimaveraDbReader;
30 class HtmlCalendarTableReader;
38 class Mpp12CalendarWriter;
41 class Mpp9CalendarWriter;
43 class MPPProjectPropsReader;
46 namespace PrimaveraXml
48 class PrimaveraReader;
56 class CalendarToRawValuesMapper;
57 class ProjectCalendarsMapper;
58 class ProjectResourcesMapper;
59 class ProjectRootMapper;
65 class XerPrimaveraReader;
66 class XerProjectNormalizer;
82 template <
typename,
typename>
class IDictionary;
83 template <
typename>
class IEnumerable;
84 template <
typename>
class IEnumerator;
85 template <
typename>
class List;
97 class ASPOSE_TASKS_SHARED_CLASS
CalendarCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::Calendar>>
100 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::Calendar>> BaseType;
102 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
103 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
105 friend class Aspose::Tasks::IO::PrimaveraXml::PrimaveraReader;
107 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::CalendarToRawValuesMapper;
108 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectRootMapper;
109 friend class Aspose::Tasks::Connectivity::MpdReader;
110 friend class Aspose::Tasks::Connectivity::MspDbReader;
111 friend class Aspose::Tasks::Connectivity::PrimaveraDbReader;
112 friend class Aspose::Tasks::IO::Html::HtmlCalendarTableReader;
113 friend class Aspose::Tasks::IO::MSProject::MPP12Reader;
114 friend class Aspose::Tasks::IO::MSProject::MPPReader;
115 friend class Aspose::Tasks::IO::MSProject::MPP14Reader;
116 friend class Aspose::Tasks::IO::MSProject::MPP9Reader;
117 friend class Aspose::Tasks::IO::MSProject::MPPProjectPropsReader;
118 friend class Aspose::Tasks::IO::MSProject::Mpp12CalendarWriter;
119 friend class Aspose::Tasks::IO::MSProject::Mpp9CalendarWriter;
120 friend class Aspose::Tasks::IO::Mpx::MpxReader;
121 friend class Aspose::Tasks::IO::Xer::XerPrimaveraReader;
122 friend class Aspose::Tasks::IO::Xer::XerProjectNormalizer;
123 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectCalendarsMapper;
124 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectResourcesMapper;
125 friend class Aspose::Tasks::IO::Xml::XmlReader;
132 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
138 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Calendar>>>
GetEnumerator()
override;
145 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar>
Add(
const System::String& name);
152 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar>
Add(
const System::String& name,
const System::SharedPtr<Calendar>& baseCalendar);
157 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Calendar>>>
ToList();
163 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar>
GetByUid(int32_t uid);
169 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar>
GetByName(
const System::String& name);
176 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Calendar>& item)
override;
180 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Project>& get_ParentProject()
const;
182 ASPOSE_TASKS_SHARED_API
CalendarCollection(
const System::SharedPtr<Project>& parentProject);
184 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
CalendarCollection, CODEPORTING_ARGS(
const System::SharedPtr<Project>& parentProject));
186 ASPOSE_TASKS_SHARED_API
CalendarCollection(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Calendar>>>& calendars,
const System::SharedPtr<Project>& parentProject);
188 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
CalendarCollection, CODEPORTING_ARGS(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Calendar>>>& calendars,
const System::SharedPtr<Project>& parentProject));
194 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar> GetByGuid(
const System::String& calendarGuid);
195 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IDictionary<int32_t, System::SharedPtr<Calendar>>> AsDictionary();
196 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Calendar>>> GetCalendarsToWrite();
197 ASPOSE_TASKS_SHARED_API
void AddInternal(
const System::SharedPtr<Calendar>& calendar);
201 #ifdef ASPOSE_GET_SHARED_MEMBERS
202 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
208 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Calendar>>> calendars;
209 System::SharedPtr<IdGenerator> uidGenerator;
210 System::SharedPtr<Calendar> zeroResourceCalendar;
211 System::WeakPtr<Project> pr_ParentProject;
213 ASPOSE_TASKS_SHARED_API
void set_ParentProject(
const System::SharedPtr<Project>& value);
214 bool get_IsReadOnly()
const override;
216 System::SharedPtr<Calendar> idx_get(int32_t index)
const override;
217 void idx_set(int32_t index, System::SharedPtr<Calendar> value)
override;
219 void Add(
const System::SharedPtr<Calendar>& item)
override;
220 void Insert(int32_t index,
const System::SharedPtr<Calendar>& item)
override;
221 void Clear()
override;
222 bool Contains(
const System::SharedPtr<Calendar>& item)
const override;
223 void CopyTo(System::ArrayPtr<System::SharedPtr<Calendar>> array, int32_t arrayIndex)
override;
224 int32_t IndexOf(
const System::SharedPtr<Calendar>& item)
const override;
225 void RemoveAt(int32_t index)
override;
226 int32_t OrderByUid(
const System::SharedPtr<Calendar>& x,
const System::SharedPtr<Calendar>& y);
227 void SetCalendars(
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Calendar>>>& list,
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Calendar>>>& innerCollection);
228 void Init(
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Calendar>>>& list,
const System::SharedPtr<Project>& inParentProject);
229 void PrepareToRemove(
const System::SharedPtr<Calendar>& item);
230 System::SharedPtr<Calendar> ValidateItem(
const System::SharedPtr<Calendar>& item);
Represents a collection of Calendar objects.
Definition: CalendarCollection.h:98
System::SharedPtr< Calendar > Add(const System::String &name, const System::SharedPtr< Calendar > &baseCalendar)
Adds a new calendar with specified base calendar to this CalendarCollection object and returns added ...
System::SharedPtr< Calendar > Add(const System::String &name)
Adds a new base calendar to this CalendarCollection object and returns added calendar.
bool Remove(const System::SharedPtr< Calendar > &item) override
Removes Calendar from Project CalendarCollection.
System::SharedPtr< Calendar > GetByName(const System::String &name)
Returns a calendar with the specified name.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Calendar > > > ToList()
Converts the CalendarCollection object to a list of Calendar objects.
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Calendar > > > GetEnumerator() override
Returns an enumerator for this collection.
int32_t get_Count() const override
Gets the number of objects contained in this CalendarCollection object.
System::SharedPtr< Calendar > GetByUid(int32_t uid)
Returns a calendar with the specified UID.
Represents a project.
Definition: Project.h:552