8 #include <system/collections/idictionary.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/Enums/RateType.h"
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 class AutoRecalculationState;
20 namespace Calculations
22 class RateByDateEnumeratorBase;
24 namespace Connectivity
27 class MpdResourceRateMapper;
28 class PmResourceRateMapper;
34 class MPPResourceReader;
36 namespace PrimaveraXml
38 class PrimaveraResourceRateNodeReader;
42 class XerResourceRateReader;
48 class ResourceNodeReader;
52 class RateByDateCollection;
54 class ResourceAssignment;
63 template <
typename>
class ICollection;
64 template <
typename>
class IEnumerable;
65 template <
typename>
class IEnumerator;
66 template <
typename,
typename>
class KeyValuePair;
67 template <
typename>
class List;
80 class ASPOSE_TASKS_SHARED_CLASS
RateCollection :
public System::Collections::Generic::IDictionary<Aspose::Tasks::RateType, System::SharedPtr<Aspose::Tasks::RateByDateCollection>>
83 typedef System::Collections::Generic::IDictionary<Aspose::Tasks::RateType, System::SharedPtr<Aspose::Tasks::RateByDateCollection>> BaseType;
85 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
86 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
88 friend class Aspose::Tasks::Calculations::RateByDateEnumeratorBase;
89 friend class Aspose::Tasks::IO::PrimaveraXml::PrimaveraResourceRateNodeReader;
92 friend class Aspose::Tasks::Connectivity::MpdReader;
93 friend class Aspose::Tasks::Connectivity::MpdResourceRateMapper;
94 friend class Aspose::Tasks::Connectivity::PmResourceRateMapper;
95 friend class Aspose::Tasks::IO::MSProject::MPPResourceReader;
96 friend class Aspose::Tasks::IO::Xer::XerResourceRateReader;
97 friend class Aspose::Tasks::IO::Xer::XerUtils;
98 friend class Aspose::Tasks::IO::Xml::RateNodeReader;
99 friend class Aspose::Tasks::IO::Xml::ResourceNodeReader;
100 friend class Aspose::Tasks::AutoRecalculationState;
107 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
111 ASPOSE_TASKS_SHARED_API
bool get_IsReadOnly()
const override;
115 ASPOSE_TASKS_SHARED_API System::SharedPtr<Resource> get_ParentResource()
const;
122 ASPOSE_TASKS_SHARED_API System::SharedPtr<RateByDateCollection> idx_get(
const RateType& key)
const override;
128 ASPOSE_TASKS_SHARED_API
void idx_set(
const RateType& key, System::SharedPtr<RateByDateCollection> value)
override;
135 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> Add(System::DateTime ratesFrom);
142 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> Add(System::DateTime ratesFrom, RateType type);
148 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Rate>& item);
153 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Rate>>> ToList()
const;
159 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Rate>>> ToList(RateType type)
const;
163 ASPOSE_TASKS_SHARED_API
RateCollection(
const System::SharedPtr<Resource>& rsc);
165 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(RateCollection, CODEPORTING_ARGS(
const System::SharedPtr<Resource>& rsc));
167 ASPOSE_TASKS_SHARED_API RateCollection(
const System::SharedPtr<Resource>& rsc,
const System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Rate>>>& rates);
169 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(RateCollection, CODEPORTING_ARGS(
const System::SharedPtr<Resource>& rsc,
const System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<Rate>>>& rates));
170 ASPOSE_TASKS_SHARED_API
void AddRange(
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Rate>>>& rateCollection);
171 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> Add(
const System::SharedPtr<Rate>& rate);
172 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> CreateRate();
173 ASPOSE_TASKS_SHARED_API
void SetAsMaterial();
174 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> GetFirstOrDefault(RateType rateType);
180 ASPOSE_TASKS_SHARED_API System::SharedPtr<RateByDateCollection> GetByType(RateType type);
182 virtual ASPOSE_TASKS_SHARED_API ~RateCollection();
184 #ifdef ASPOSE_GET_SHARED_MEMBERS
185 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
191 static System::DateTime& RatesFromMin();
193 System::SharedPtr<System::Collections::Generic::IDictionary<RateType, System::SharedPtr<RateByDateCollection>>> rates;
194 System::WeakPtr<Resource> parentResource;
197 System::SharedPtr<System::Collections::Generic::ICollection<RateType>> get_Keys()
const override;
199 System::SharedPtr<System::Collections::Generic::ICollection<System::SharedPtr<RateByDateCollection>>> get_Values()
const override;
205 System::SharedPtr<System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<RateType, System::SharedPtr<RateByDateCollection>>>> GetEnumerator()
override;
207 void Add(
const System::Collections::Generic::KeyValuePair<RateType, System::SharedPtr<RateByDateCollection>>& item)
override;
209 void Clear()
override;
211 bool Contains(
const System::Collections::Generic::KeyValuePair<RateType, System::SharedPtr<RateByDateCollection>>& item)
const override;
213 void CopyTo(System::ArrayPtr<System::Collections::Generic::KeyValuePair<RateType, System::SharedPtr<RateByDateCollection>>> array, int32_t arrayIndex)
override;
215 bool Remove(
const System::Collections::Generic::KeyValuePair<RateType, System::SharedPtr<RateByDateCollection>>& item)
override;
217 bool ContainsKey(
const RateType& key)
const override;
219 void Add(
const RateType& key,
const System::SharedPtr<RateByDateCollection>& value)
override;
221 bool Remove(
const RateType& key)
override;
223 bool TryGetValue(
const RateType& key, System::SharedPtr<RateByDateCollection>& value)
const override;
224 System::SharedPtr<Rate> GetLast(RateType type);
Represents a collection which contains Rate objects.
Definition: RateCollection.h:80
Represents a resource assignment in a project.
Definition: ResourceAssignment.h:221
Represents a resource in a project.
Definition: Resource.h:206