Aspose.Tasks for C++
WeeklyRepetition.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="WeeklyRepetition.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
9 #include "aspose.tasks.cpp/Recurring/weeks/WeeklyRepetitionBase.h"
10 
11 namespace Aspose
12 {
13 namespace Tasks
14 {
15 class Calendar;
16 class Duration;
17 class RecurrencePatternValidatorBase;
18 namespace Recurring
19 {
20 namespace Calculators
21 {
22 class RecurrenceDateCalculatorBase;
23 } // namespace Calculators
24 } // namespace Recurring
25 enum class WeekdayType;
26 } // namespace Tasks
27 } // namespace Aspose
28 
29 namespace Aspose {
30 
31 namespace Tasks {
32 
33 /// <summary>
34 /// Represents a pattern which is based on weekdays.
35 /// </summary>
36 class ASPOSE_TASKS_SHARED_CLASS WeeklyRepetition : public WeeklyRepetitionBase
37 {
38  typedef WeeklyRepetition ThisType;
39  typedef WeeklyRepetitionBase BaseType;
40 
41  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
43 
44 public:
45 
46  /// <summary>
47  /// Gets a type of weekdays.
48  /// </summary>
49  ASPOSE_TASKS_SHARED_API WeekdayType get_WeekDays() const;
50  /// <summary>
51  /// Sets a type of weekdays.
52  /// </summary>
53  ASPOSE_TASKS_SHARED_API void set_WeekDays(WeekdayType value);
54 
55  /// <summary>
56  /// Initializes a new instance of the <see cref="WeeklyRepetition"></see> class.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API WeeklyRepetition();
59 
60 protected:
61 
62  ASPOSE_TASKS_SHARED_API System::SharedPtr<RecurrencePatternValidatorBase> GetValidatorInternal(System::SharedPtr<Calendar> calendar) override;
63  ASPOSE_TASKS_SHARED_API System::SharedPtr<Recurring::Calculators::RecurrenceDateCalculatorBase> GetCalculatorInternal(System::SharedPtr<Calendar> calendar, Duration duration) override;
64  #ifdef ASPOSE_GET_SHARED_MEMBERS
65  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
66  #endif
67 
68 
69 private:
70 
71  WeekdayType pr_WeekDays;
72 
73 };
74 
75 } // namespace Tasks
76 } // namespace Aspose
77 
78 
Represents duration in a project.
Definition: Duration.h:161
Represents a base class for repetitions in weekly recurrence pattern.
Definition: WeeklyRepetitionBase.h:40
Represents a pattern which is based on weekdays.
Definition: WeeklyRepetition.h:37
void set_WeekDays(WeekdayType value)
Sets a type of weekdays.
WeekdayType get_WeekDays() const
Gets a type of weekdays.
WeeklyRepetition()
Initializes a new instance of the WeeklyRepetition class.
Aspose.
Definition: Asn.h:13