Aspose.Tasks for C++
ByMonthDayRepetition.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="ByMonthDayRepetition.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <cstdint>
9 
10 #include "aspose.tasks.cpp/Recurring/months/MonthlyRepetitionBase.h"
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 class Calendar;
18 class RecurrencePatternValidatorBase;
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 /// <summary>
27 /// Represents a pattern which is based on the absolute position of a day in a month.
28 /// </summary>
29 class ASPOSE_TASKS_SHARED_CLASS ByMonthDayRepetition : public Aspose::Tasks::MonthlyRepetitionBase
30 {
31  typedef ByMonthDayRepetition ThisType;
32  typedef Aspose::Tasks::MonthlyRepetitionBase BaseType;
33 
34  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
36 
37 public:
38 
39  /// <summary>
40  /// Gets a position of a day in a month on which the task must be recurring.
41  /// </summary>
42  ASPOSE_TASKS_SHARED_API int32_t get_DayPosition() const;
43  /// <summary>
44  /// Sets a position of a day in a month on which the task must be recurring.
45  /// </summary>
46  ASPOSE_TASKS_SHARED_API void set_DayPosition(int32_t value);
47 
48  /// <summary>
49  /// Initializes a new instance of the <see cref="ByMonthDayRepetition"></see> class.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API ByMonthDayRepetition();
52 
53 protected:
54 
55  ASPOSE_TASKS_SHARED_API System::SharedPtr<RecurrencePatternValidatorBase> GetValidatorInternal(System::SharedPtr<Calendar> calendar) override;
56 
57 private:
58 
59  int32_t dayPosition;
60 
61 };
62 
63 } // namespace Tasks
64 } // namespace Aspose
65 
66 
Represents a pattern which is based on the absolute position of a day in a month.
Definition: ByMonthDayRepetition.h:30
ByMonthDayRepetition()
Initializes a new instance of the ByMonthDayRepetition class.
void set_DayPosition(int32_t value)
Sets a position of a day in a month on which the task must be recurring.
int32_t get_DayPosition() const
Gets a position of a day in a month on which the task must be recurring.
Represents a base pattern for monthly day position.
Definition: MonthlyRepetitionBase.h:40
Definition: Asn.h:13