Aspose.Tasks for C++
ByYearDayRepetition.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="ByYearDayRepetition.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/years/YearlyRepetitionBase.h"
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 class Calendar;
18 enum class Month;
19 class RecurrencePatternValidatorBase;
20 } // namespace Tasks
21 } // namespace Aspose
22 
23 namespace Aspose {
24 
25 namespace Tasks {
26 
27 /// <summary>
28 /// Represents a pattern which is based on the absolute position of a day in a month.
29 /// </summary>
30 class ASPOSE_TASKS_SHARED_CLASS ByYearDayRepetition : public Aspose::Tasks::YearlyRepetitionBase
31 {
32  typedef ByYearDayRepetition ThisType;
33  typedef Aspose::Tasks::YearlyRepetitionBase BaseType;
34 
35  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
37 
38 public:
39 
40  /// <summary>
41  /// Gets a position of day in a month on which the task must be recurring.
42  /// </summary>
43  ASPOSE_TASKS_SHARED_API int32_t get_DayPosition() const;
44  /// <summary>
45  /// Sets a position of day in a month on which the task must be recurring.
46  /// </summary>
47  ASPOSE_TASKS_SHARED_API void set_DayPosition(int32_t value);
48  /// <summary>
49  /// Gets a month on which the task must be recurring.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Month get_Month() const;
52  /// <summary>
53  /// Sets a month on which the task must be recurring.
54  /// </summary>
55  ASPOSE_TASKS_SHARED_API void set_Month(Aspose::Tasks::Month value);
56 
57  /// <summary>
58  /// Initializes a new instance of the <see cref="ByYearDayRepetition"></see> class.
59  /// </summary>
60  // ReSharper disable once EmptyConstructor
61  ASPOSE_TASKS_SHARED_API ByYearDayRepetition();
62 
63 protected:
64 
65  ASPOSE_TASKS_SHARED_API System::SharedPtr<RecurrencePatternValidatorBase> GetValidatorInternal(System::SharedPtr<Calendar> calendar) override;
66  #ifdef ASPOSE_GET_SHARED_MEMBERS
67  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
68  #endif
69 
70 
71 private:
72 
73  int32_t dayPosition;
74  Aspose::Tasks::Month pr_Month;
75 
76 };
77 
78 } // namespace Tasks
79 } // namespace Aspose
80 
81 
Represents a pattern which is based on the absolute position of a day in a month.
Definition: ByYearDayRepetition.h:31
Aspose::Tasks::Month get_Month() const
Gets a month on which the task must be recurring.
ByYearDayRepetition()
Initializes a new instance of the ByYearDayRepetition class.
void set_Month(Aspose::Tasks::Month value)
Sets a month on which the task must be recurring.
void set_DayPosition(int32_t value)
Sets a position of day in a month on which the task must be recurring.
int32_t get_DayPosition() const
Gets a position of day in a month on which the task must be recurring.
Represents a base pattern for yearly day position.
Definition: YearlyRepetitionBase.h:38
Definition: Asn.h:13