Aspose.Tasks for C++
DailyRecurrencePattern.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="DailyRecurrencePattern.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include "aspose.tasks.cpp/Recurring/RecurrencePatternBase.h"
9 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Tasks
14 {
15 class Calendar;
16 class DailyRepetitionBase;
17 class Duration;
18 class RecurrencePatternValidatorBase;
19 namespace Recurring
20 {
21 namespace Calculators
22 {
23 class RecurrenceDateCalculatorBase;
24 } // namespace Calculators
25 } // namespace Recurring
26 } // namespace Tasks
27 } // namespace Aspose
28 
29 namespace Aspose {
30 
31 namespace Tasks {
32 
33 /// <summary>
34 /// Represents the set of parameters are used to create a daily recurring task in a project.
35 /// </summary>
36 class ASPOSE_TASKS_SHARED_CLASS DailyRecurrencePattern : public Aspose::Tasks::RecurrencePatternBase
37 {
40 
41  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
43 
44 public:
45 
46  /// <summary>
47  /// Gets the pattern of repetitions in daily recurrence pattern.
48  /// </summary>
49  ASPOSE_TASKS_SHARED_API const System::SharedPtr<DailyRepetitionBase>& get_Repetition() const;
50  /// <summary>
51  /// Sets the pattern of repetitions in daily recurrence pattern.
52  /// </summary>
53  ASPOSE_TASKS_SHARED_API void set_Repetition(const System::SharedPtr<DailyRepetitionBase>& value);
54 
55  /// <summary>
56  /// Initializes a new instance of the <see cref="DailyRecurrencePattern"></see> class.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API DailyRecurrencePattern();
59 
60 protected:
61 
62  /// <summary>
63  /// Returns a validator which check a date as valid against the recurrence pattern conditions.
64  /// </summary>
65  /// <returns>Returns the instance of the validator.</returns>
66  ASPOSE_TASKS_SHARED_API System::SharedPtr<RecurrencePatternValidatorBase> GetValidatorInternal(System::SharedPtr<Aspose::Tasks::Calendar> calendar) override;
67  /// <summary>
68  /// Returns a calculator which calculates start/finish dates by appropriate algorithm.
69  /// </summary>
70  /// <param name="calendar">The calendar.</param>
71  /// <param name="duration">The duration between start and finish dates.</param>
72  /// <returns>Returns the instance of the validator.</returns>
73  ASPOSE_TASKS_SHARED_API System::SharedPtr<Recurring::Calculators::RecurrenceDateCalculatorBase> GetCalculatorInternal(System::SharedPtr<Aspose::Tasks::Calendar> calendar, Aspose::Tasks::Duration duration) override;
74  ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Tasks::Calendar> GetCalendarOrDefault(System::SharedPtr<Aspose::Tasks::Calendar> calendar) override;
75  #ifdef ASPOSE_GET_SHARED_MEMBERS
76  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
77  #endif
78 
79 
80 private:
81 
82  System::SharedPtr<DailyRepetitionBase> pr_Repetition;
83 
84 };
85 
86 } // namespace Tasks
87 } // namespace Aspose
88 
89 
Represents the set of parameters are used to create a daily recurring task in a project.
Definition: DailyRecurrencePattern.h:37
void set_Repetition(const System::SharedPtr< DailyRepetitionBase > &value)
Sets the pattern of repetitions in daily recurrence pattern.
const System::SharedPtr< DailyRepetitionBase > & get_Repetition() const
Gets the pattern of repetitions in daily recurrence pattern.
DailyRecurrencePattern()
Initializes a new instance of the DailyRecurrencePattern class.
Represents duration in a project.
Definition: Duration.h:163
Represents the base class of recurrence pattern.
Definition: RecurrencePatternBase.h:40
Definition: Asn.h:13