Aspose.Tasks for C++
RateByDateCollection.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="RateByDateCollection.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/details/pointer_collection_helpers.h>
9 #include <system/date_time.h>
10 #include <system/collections/sorted_dictionary.h>
11 #include <cstdint>
12 
13 #include "aspose.tasks.cpp/Rate.h"
14 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
15 
16 namespace Aspose
17 {
18 namespace Tasks
19 {
20 class RateCollection;
21 } // namespace Tasks
22 } // namespace Aspose
23 
24 namespace Aspose {
25 
26 namespace Tasks {
27 
28 /// <summary>
29 /// Represents a collection which mappings of <see cref="DateTime"></see> to <see cref="Rate"></see> objects.
30 /// </summary>
31 class ASPOSE_TASKS_SHARED_CLASS RateByDateCollection : public System::Collections::Generic::SortedDictionary<System::DateTime, System::SharedPtr<Aspose::Tasks::Rate>>
32 {
34  typedef System::Collections::Generic::SortedDictionary<System::DateTime, System::SharedPtr<Aspose::Tasks::Rate>> BaseType;
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
38 
39  friend class Aspose::Tasks::Rate;
40  friend class Aspose::Tasks::RateCollection;
41 
42 public:
43 
44  ASPOSE_TASKS_SHARED_API void SetTemplateWeakPtr(uint32_t argument) override;
45 
46 protected:
47 
48  ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> GetFirst();
49  ASPOSE_TASKS_SHARED_API void ConvertToMaterial();
50 
51  virtual ASPOSE_TASKS_SHARED_API ~RateByDateCollection();
52 
53 };
54 
55 } // namespace Tasks
56 } // namespace Aspose
57 
58 
Represents a collection which contains Rate objects.
Definition: RateCollection.h:80
Represents a definition of a time period and rates applicable for a resource during that period...
Definition: Rate.h:63
Represents a collection which mappings of DateTime to Rate objects.
Definition: RateByDateCollection.h:31