Aspose.Tasks for C++
AvailabilityPeriod.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="AvailabilityPeriod.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 #include <system/date_time.h>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose {
14 
15 namespace Tasks {
16 
17 /// <summary>
18 /// Represents a period when a resource is available.
19 /// </summary>
20 class ASPOSE_TASKS_SHARED_CLASS AvailabilityPeriod : public System::Object
21 {
23  typedef System::Object BaseType;
24 
25  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
26  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
27 
28 public:
29 
30  /// <summary>
31  /// Gets the date when a resource becomes available for the specified period.
32  /// </summary>
33  ASPOSE_TASKS_SHARED_API System::DateTime get_AvailableFrom() const;
34  /// <summary>
35  /// Sets the date when a resource becomes available for the specified period.
36  /// </summary>
37  ASPOSE_TASKS_SHARED_API void set_AvailableFrom(System::DateTime value);
38  /// <summary>
39  /// Gets the last date when a resource is available for the specified period.
40  /// </summary>
41  ASPOSE_TASKS_SHARED_API System::DateTime get_AvailableTo() const;
42  /// <summary>
43  /// Sets the last date when a resource is available for the specified period.
44  /// </summary>
45  ASPOSE_TASKS_SHARED_API void set_AvailableTo(System::DateTime value);
46  /// <summary>
47  /// Gets the percentage of a resource which is available during the specified period.
48  /// </summary>
49  ASPOSE_TASKS_SHARED_API double get_AvailableUnits() const;
50  /// <summary>
51  /// Sets the percentage of a resource which is available during the specified period.
52  /// </summary>
53  ASPOSE_TASKS_SHARED_API void set_AvailableUnits(double value);
54 
55  ASPOSE_TASKS_SHARED_API AvailabilityPeriod();
56 
57 protected:
58 
59  #ifdef ASPOSE_GET_SHARED_MEMBERS
60  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
61  #endif
62 
63 
64 private:
65 
66  System::DateTime pr_AvailableFrom;
67  System::DateTime pr_AvailableTo;
68  double pr_AvailableUnits;
69 
70 };
71 
72 } // namespace Tasks
73 } // namespace Aspose
74 
75 
Represents a period when a resource is available.
Definition: AvailabilityPeriod.h:21
void set_AvailableTo(System::DateTime value)
Sets the last date when a resource is available for the specified period.
System::DateTime get_AvailableFrom() const
Gets the date when a resource becomes available for the specified period.
void set_AvailableFrom(System::DateTime value)
Sets the date when a resource becomes available for the specified period.
System::DateTime get_AvailableTo() const
Gets the last date when a resource is available for the specified period.
double get_AvailableUnits() const
Gets the percentage of a resource which is available during the specified period.
void set_AvailableUnits(double value)
Sets the percentage of a resource which is available during the specified period.
Definition: Asn.h:13