8 #include <system/collections/list.h>
9 #include <system/collections/ilist.h>
10 #include <system/array.h>
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 namespace Connectivity
21 class MpdExtendedAttributeDefinitionMapper;
24 enum class ElementType;
25 class ExtendedAttributeDefinition;
30 class MPP14OutlineCodeDefinitionWriter;
38 template <
typename>
class ExtendedAttributeParentEntityToRawValuesMapper;
44 class ExtendedAttributeNodeReader;
49 class TaskFieldsFormulaParser;
58 template <
typename>
class HashSet;
59 template <
typename>
class IComparer;
60 template <
typename,
typename>
class IDictionary;
61 template <
typename>
class IEnumerable;
62 template <
typename>
class IEnumerator;
77 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::ExtendedAttributeDefinition>> BaseType;
79 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
80 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
82 friend class Aspose::Tasks::TaskFieldsFormulaParser;
84 template<
typename FT0>
friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ExtendedAttributeParentEntityToRawValuesMapper;
85 friend class Aspose::Tasks::Connectivity::MpdExtendedAttributeDefinitionMapper;
86 friend class Aspose::Tasks::Connectivity::MspDbReader;
87 friend class Aspose::Tasks::IO::MSProject::MPP14OutlineCodeDefinitionWriter;
88 friend class Aspose::Tasks::IO::Xml::ExtendedAttributeNodeReader;
89 friend class Aspose::Tasks::IO::Xml::XmlReader;
93 using iterator_holder_type = System::Collections::Generic::List<System::SharedPtr<ExtendedAttributeDefinition>>;
95 using iterator =
typename iterator_holder_type::iterator;
109 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Project>& get_ParentProject()
const;
113 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
117 ASPOSE_TASKS_SHARED_API
bool get_IsReadOnly()
const override;
124 ASPOSE_TASKS_SHARED_API System::SharedPtr<ExtendedAttributeDefinition> idx_get(int32_t index)
const override;
130 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<ExtendedAttributeDefinition> value)
override;
136 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<ExtendedAttributeDefinition>>> GetEnumerator()
override;
141 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<ExtendedAttributeDefinition>& item)
override;
145 ASPOSE_TASKS_SHARED_API
void Clear()
override;
151 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<ExtendedAttributeDefinition>& item)
const override;
157 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<ExtendedAttributeDefinition>> array, int32_t arrayIndex)
override;
163 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<ExtendedAttributeDefinition>& item)
override;
169 ASPOSE_TASKS_SHARED_API int32_t IndexOf(
const System::SharedPtr<ExtendedAttributeDefinition>& item)
const override;
175 ASPOSE_TASKS_SHARED_API
void Insert(int32_t index,
const System::SharedPtr<ExtendedAttributeDefinition>& item)
override;
180 ASPOSE_TASKS_SHARED_API
void RemoveAt(int32_t index)
override;
185 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<ExtendedAttributeDefinition>>> ToList();
191 ASPOSE_TASKS_SHARED_API System::SharedPtr<ExtendedAttributeDefinition> GetById(int32_t
id);
194 ASPOSE_TASKS_SHARED_API
iterator begin() noexcept;
197 ASPOSE_TASKS_SHARED_API
iterator end() noexcept;
237 ASPOSE_TASKS_SHARED_API ExtendedAttributeDefinitionCollection(const System::SharedPtr<
Project>& parentProject, const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<
ExtendedAttributeDefinition>>>& definitions);
239 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ExtendedAttributeDefinitionCollection, CODEPORTING_ARGS(const System::SharedPtr<
Project>& parentProject, const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<
ExtendedAttributeDefinition>>>& definitions));
241 ASPOSE_TASKS_SHARED_API System::SharedPtr<
ExtendedAttributeDefinition> GetByKey(
bool isEnterprise, ElementType elementType, System::String name);
242 ASPOSE_TASKS_SHARED_API
void AddRange(const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<
ExtendedAttributeDefinition>>>& attributes);
243 ASPOSE_TASKS_SHARED_API
void Sort(const System::SharedPtr<System::Collections::Generic::IComparer<System::SharedPtr<
ExtendedAttributeDefinition>>>& comparer);
245 virtual ASPOSE_TASKS_SHARED_API ~ExtendedAttributeDefinitionCollection();
247 #ifdef ASPOSE_GET_SHARED_MEMBERS
248 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
254 System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<ExtendedAttributeDefinition>>> definitions;
255 System::SharedPtr<System::Collections::Generic::IDictionary<int32_t, System::SharedPtr<ExtendedAttributeDefinition>>> idMap;
256 System::SharedPtr<System::Collections::Generic::HashSet<int32_t>> outlineValueHashSet;
257 System::WeakPtr<Project> pr_ParentProject;
263 ASPOSE_TASKS_SHARED_API
void set_ParentProject(
const System::SharedPtr<Project>& value);
265 void Init(
const System::SharedPtr<Project>& inParentProject,
const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<ExtendedAttributeDefinition>>>& inDefinitions);
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: ExtendedAttributeDefinitionCollection.h:99
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: ExtendedAttributeDefinitionCollection.h:101
Represents an extended attribute definition associated with a project.
Definition: ExtendedAttributeDefinition.h:181
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: ExtendedAttributeDefinitionCollection.h:97
Represents a collection of ExtendedAttributeDefinition objects.
Definition: ExtendedAttributeDefinitionCollection.h:74
Represents a project.
Definition: Project.h:551
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: ExtendedAttributeDefinitionCollection.h:95
System::Collections::Generic::List< System::SharedPtr< ExtendedAttributeDefinition >> iterator_holder_type
A collection type whose iterator types is used as iterator types in the current collection.
Definition: ExtendedAttributeDefinitionCollection.h:93