8 #include <system/collections/ilist.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/Enums/DayType.h"
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 class CalendarException;
24 class HtmlReadingUtils;
28 class Mpp12CalendarWriter;
29 class Mpp12ExceptionReader;
33 class ExceptionNodeReader;
34 class ExceptionNodeWriter;
45 template <
typename,
typename>
class Dictionary;
46 template <
typename>
class IEnumerator;
58 class ASPOSE_TASKS_SHARED_CLASS
DayTypeCollection :
public System::Collections::Generic::IList<Aspose::Tasks::DayType>
61 typedef System::Collections::Generic::IList<Aspose::Tasks::DayType> BaseType;
63 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
64 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
67 friend class Aspose::Tasks::IO::Html::HtmlReadingUtils;
68 friend class Aspose::Tasks::IO::MSProject::Mpp12ExceptionReader;
69 friend class Aspose::Tasks::IO::MSProject::Mpp12CalendarWriter;
70 friend class Aspose::Tasks::IO::Xml::ExceptionNodeReader;
71 friend class Aspose::Tasks::IO::Xml::ExceptionNodeWriter;
78 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
89 ASPOSE_TASKS_SHARED_API DayType
idx_get(int32_t index)
const override;
95 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, DayType value)
override;
101 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<DayType>>
GetEnumerator()
override;
106 ASPOSE_TASKS_SHARED_API
void Add(
const DayType& item)
override;
110 ASPOSE_TASKS_SHARED_API
void Clear()
override;
116 ASPOSE_TASKS_SHARED_API
bool Contains(
const DayType& item)
const override;
122 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<DayType> array, int32_t arrayIndex)
override;
128 ASPOSE_TASKS_SHARED_API
bool Remove(
const DayType& item)
override;
134 ASPOSE_TASKS_SHARED_API int32_t
IndexOf(
const DayType& item)
const override;
140 ASPOSE_TASKS_SHARED_API
void Insert(int32_t index,
const DayType& item)
override;
145 ASPOSE_TASKS_SHARED_API
void RemoveAt(int32_t index)
override;
151 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
DayTypeCollection, CODEPORTING_ARGS());
155 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
DayTypeCollection, CODEPORTING_ARGS(int32_t val));
156 ASPOSE_TASKS_SHARED_API int32_t Pack();
160 #ifdef ASPOSE_GET_SHARED_MEMBERS
161 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
167 static System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, DayType>>& DaysOfWeekTypes();
169 System::SharedPtr<System::Collections::Generic::IList<DayType>> days;
171 static System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, DayType>> InitDaysOfWeekTable();
172 System::SharedPtr<System::Collections::Generic::IList<DayType>> ToDays(int32_t val);
Represent exceptional time periods in a calendar.
Definition: CalendarException.h:73
Represents a collection of DayType objects.
Definition: DayTypeCollection.h:59
DayType idx_get(int32_t index) const override
Returns the element at the specified index.
bool Contains(const DayType &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
void Clear() override
Removes all items from this collection.
void Add(const DayType &item) override
Adds the specified item to this collection.
void Insert(int32_t index, const DayType &item) override
Inserts the specified item at the specified index.
bool Remove(const DayType &item) override
Removes the first occurrence of a specific object from this collection.
int32_t IndexOf(const DayType &item) const override
Determines the index of the specified item in this collection.
bool get_IsReadOnly() const override
Gets a value indicating whether if this collection is read-only; otherwise, false.
System::SharedPtr< System::Collections::Generic::IEnumerator< DayType > > GetEnumerator() override
Returns an enumerator for this collection.
void CopyTo(System::ArrayPtr< DayType > array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
void idx_set(int32_t index, DayType value) override
Sets the element at the specified index.
void RemoveAt(int32_t index) override
Removes an item at the specified index.
int32_t get_Count() const override
Gets the number of elements contained in this collection.