Aspose.Tasks for C++
WorkWeek.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="WorkWeek.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 #include <system/date_time.h>
10 #include <cstdint>
11 
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 class WeekDayCollection;
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 /// <summary>
27 /// Represent WorkWeek class
28 /// </summary>
29 class ASPOSE_TASKS_SHARED_CLASS WorkWeek : public System::Object
30 {
31  typedef WorkWeek ThisType;
32  typedef System::Object BaseType;
33 
34  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
36 
37 public:
38 
39  /// <summary>
40  /// Gets start DateTime of work week
41  /// </summary>
42  ASPOSE_TASKS_SHARED_API System::DateTime get_FromDate() const;
43  /// <summary>
44  /// Sets start DateTime of work week
45  /// </summary>
46  ASPOSE_TASKS_SHARED_API void set_FromDate(System::DateTime value);
47  /// <summary>
48  /// Gets Finish DateTime of work week
49  /// </summary>
50  ASPOSE_TASKS_SHARED_API System::DateTime get_ToDate() const;
51  /// <summary>
52  /// Sets Finish DateTime of work week
53  /// </summary>
54  ASPOSE_TASKS_SHARED_API void set_ToDate(System::DateTime value);
55  /// <summary>
56  /// Gets Name of work week
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API System::String get_Name() const;
59  /// <summary>
60  /// Sets Name of work week
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API void set_Name(const System::String& value);
63  /// <summary>
64  /// Gets week days.
65  /// </summary>
66  ASPOSE_TASKS_SHARED_API const System::SharedPtr<WeekDayCollection>& get_WeekDays() const;
67 
68  /// <summary>
69  /// Initializes a new instance of the <see cref="WorkWeek"></see> class.
70  /// </summary>
71  ASPOSE_TASKS_SHARED_API WorkWeek();
72 
73 protected:
74 
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  static const int32_t MaxNameLength;
83  System::String name;
84  System::DateTime pr_FromDate;
85  System::DateTime pr_ToDate;
86  System::SharedPtr<WeekDayCollection> pr_WeekDays;
87 
88  /// <summary>
89  /// Gets week days.
90  /// </summary>
91  ASPOSE_TASKS_SHARED_API void set_WeekDays(const System::SharedPtr<WeekDayCollection>& value);
92  System::String get_DebuggerDisplay();
93 
94 };
95 
96 } // namespace Tasks
97 } // namespace Aspose
98 
99 
Represent WorkWeek class
Definition: WorkWeek.h:29