8 #include <system/object.h>
9 #include <system/date_time.h>
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
21 class MppAvailabilityWriter;
41 typedef System::Object BaseType;
43 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
44 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
46 friend class Aspose::Tasks::IO::MSProject::MppAvailabilityWriter;
82 ASPOSE_TASKS_SHARED_API
AvailabilityPeriod(System::DateTime availableFrom, System::DateTime availableTo,
double availableUnits);
86 ASPOSE_TASKS_SHARED_API
bool get_IsImplicit()
const;
87 ASPOSE_TASKS_SHARED_API System::String get_DebuggerDisplay();
89 static ASPOSE_TASKS_SHARED_API System::SharedPtr<AvailabilityPeriod> CreateImplicit(System::DateTime availableFrom, System::DateTime availableTo);
90 ASPOSE_TASKS_SHARED_API
bool Intersects(
const System::SharedPtr<AvailabilityPeriod>& another);
91 static ASPOSE_TASKS_SHARED_API System::String FormatDate(System::DateTime date);
92 #ifdef ASPOSE_GET_SHARED_MEMBERS
93 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
99 System::DateTime pr_AvailableFrom;
100 System::DateTime pr_AvailableTo;
101 double pr_AvailableUnits;
104 ASPOSE_TASKS_SHARED_API
void set_IsImplicit(
bool value);
Represents a period when a resource is available.
Definition: AvailabilityPeriod.h:39
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.
AvailabilityPeriod(System::DateTime availableFrom, System::DateTime availableTo, double availableUnits)
Initializes a new instance of the AvailabilityPeriod with the specified date range and available unit...
AvailabilityPeriod()
Initializes a new instance of the AvailabilityPeriod.
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.