8 #include <system/date_time.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
24 class HtmlCalendarTableReader;
28 class XerCalendarReader;
31 class WeekDayCollection;
33 class WorkingTimeCollection;
42 template <
typename>
class IEnumerable;
61 class ASPOSE_TASKS_SHARED_CLASS
WeekDay :
public System::Object
64 typedef System::Object BaseType;
66 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
67 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
69 friend class Aspose::Tasks::IO::Html::HtmlCalendarTableReader;
70 friend class Aspose::Tasks::IO::Xer::XerCalendarReader;
79 ASPOSE_TASKS_SHARED_API Aspose::Tasks::DayType
get_DayType()
const;
99 ASPOSE_TASKS_SHARED_API System::DateTime
get_ToDate()
const;
103 ASPOSE_TASKS_SHARED_API
void set_ToDate(System::DateTime value);
114 ASPOSE_TASKS_SHARED_API
WeekDay(Aspose::Tasks::DayType dayType);
120 ASPOSE_TASKS_SHARED_API
WeekDay(Aspose::Tasks::DayType dayType,
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<WorkingTime>>>& workingTimes);
126 ASPOSE_TASKS_SHARED_API
WeekDay(Aspose::Tasks::DayType dayType,
const System::ArrayPtr<System::SharedPtr<WorkingTime>>& workingTimes);
143 ASPOSE_TASKS_SHARED_API
static Aspose::Tasks::DayType
CastToDayType(System::DayOfWeek dw);
158 ASPOSE_TASKS_SHARED_API System::SharedPtr<WeekDay>
Clone();
164 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<System::Object> obj)
override;
173 ASPOSE_TASKS_SHARED_API
double get_WorkingMinsCount();
175 ASPOSE_TASKS_SHARED_API
WeekDay(int32_t dayType);
177 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
WeekDay, CODEPORTING_ARGS(int32_t dayType));
179 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Text::StringBuilder> Dump(
const System::SharedPtr<System::Text::StringBuilder>& sb);
180 #ifdef ASPOSE_GET_SHARED_MEMBERS
181 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
187 System::SharedPtr<WorkingTimeCollection> workingTimes;
189 Aspose::Tasks::DayType pr_DayType;
194 ASPOSE_TASKS_SHARED_API
void set_DayType(Aspose::Tasks::DayType value);
196 System::DateTime pr_FromDate;
197 System::DateTime pr_ToDate;
199 System::String get_DebuggerDisplay();
201 void WorkingTimesOnCollectionChanged(
const System::SharedPtr<System::Object>& sender,
const System::SharedPtr<System::EventArgs>& e);
Represents a calendar used in a project.
Definition: Calendar.h:299
Represents a collection of WeekDay objects.
Definition: WeekDayCollection.h:76
Represents a weekday which either defines regular days of a week or exception days in a calendar.
Definition: WeekDay.h:62
WeekDay(Aspose::Tasks::DayType dayType, const System::ArrayPtr< System::SharedPtr< WorkingTime >> &workingTimes)
Initializes a new instance of the WeekDay class with the specified day type and working time periods.
WeekDay(Aspose::Tasks::DayType dayType)
Initializes a new instance of the WeekDay class with the specified day type.
System::SharedPtr< WeekDay > Clone()
Returns a deep copy of the week day.
bool Equals(System::SharedPtr< System::Object > obj) override
Returns a value indicating whether this instance is equal to a specified object.
System::DateTime get_FromDate() const
Gets the beginning of an exception time.
static Aspose::Tasks::DayType CastToDayType(System::DayOfWeek dw)
Casts .Net's DayOfWeek to DayType.
WeekDay()
Initializes a new instance of the WeekDay class.
WeekDay(Aspose::Tasks::DayType dayType, const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< WorkingTime >>> &workingTimes)
Initializes a new instance of the WeekDay class with the specified day type and list of working time ...
System::DateTime get_ToDate() const
Gets the end of an exception time.
bool get_DayWorking() const
Gets a value indicating whether the specified date or day type is working.
void set_DayWorking(bool value)
Sets a value indicating whether the specified date or day type is working.
static System::SharedPtr< WeekDay > CreateDefaultWorkingDay(Aspose::Tasks::DayType dayType)
Creates default working day.
System::TimeSpan GetWorkingTime()
Returns the working time for a week day.
void set_FromDate(System::DateTime value)
Sets the beginning of an exception time.
System::SharedPtr< WorkingTimeCollection > get_WorkingTimes() const
Gets WorkingTimeCollection for this WeekDay instance. The collection of working times that define the...
Aspose::Tasks::DayType get_DayType() const
Gets the type of a day.
static void SetDefaultWorkingTime(const System::SharedPtr< WeekDay > &day)
Sets default time periods for the specified week day.
int32_t GetHashCode() const override
Returns a hash code value for the instance of the WeekDay class.
void set_ToDate(System::DateTime value)
Sets the end of an exception time.
Aspose.
Definition: Asn.h:13