Aspose.Tasks for C++
|
Represents a weekday which either defines regular days of a week or exception days in a calendar. More...
#include <WeekDay.h>
Inherits System::Object.
Public Member Functions | |
Aspose::Tasks::DayType | get_DayType () const |
Gets the type of a day. More... | |
bool | get_DayWorking () const |
Gets a value indicating whether the specified date or day type is working. More... | |
void | set_DayWorking (bool value) |
Sets a value indicating whether the specified date or day type is working. More... | |
System::DateTime | get_FromDate () const |
Gets the beginning of an exception time. More... | |
void | set_FromDate (System::DateTime value) |
Sets the beginning of an exception time. More... | |
System::DateTime | get_ToDate () const |
Gets the end of an exception time. More... | |
void | set_ToDate (System::DateTime value) |
Sets the end of an exception time. More... | |
System::SharedPtr< WorkingTimeCollection > | get_WorkingTimes () const |
Gets WorkingTimeCollection for this WeekDay instance. The collection of working times that define the time worked on the weekday. More... | |
WeekDay (Aspose::Tasks::DayType dayType) | |
Initializes a new instance of the WeekDay class with the specified day type. More... | |
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 periods. More... | |
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. More... | |
WeekDay () | |
Initializes a new instance of the WeekDay class. More... | |
System::TimeSpan | GetWorkingTime () |
Returns the working time for a week day. More... | |
System::SharedPtr< WeekDay > | Clone () |
Returns a deep copy of the week day. More... | |
bool | Equals (System::SharedPtr< System::Object > obj) override |
Returns a value indicating whether this instance is equal to a specified object. More... | |
int32_t | GetHashCode () const override |
Returns a hash code value for the instance of the WeekDay class. More... | |
Static Public Member Functions | |
static System::SharedPtr< WeekDay > | CreateDefaultWorkingDay (Aspose::Tasks::DayType dayType) |
Creates default working day. More... | |
static Aspose::Tasks::DayType | CastToDayType (System::DayOfWeek dw) |
Casts .Net's DayOfWeek to DayType. More... | |
static void | SetDefaultWorkingTime (const System::SharedPtr< WeekDay > &day) |
Sets default time periods for the specified week day. More... | |
Represents a weekday which either defines regular days of a week or exception days in a calendar.
Aspose::Tasks::WeekDay::WeekDay | ( | Aspose::Tasks::DayType | dayType | ) |
Initializes a new instance of the WeekDay class with the specified day type.
dayType | The specified day type. |
Aspose::Tasks::WeekDay::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 periods.
dayType | The specified day type. |
workingTimes | List of working time periods. |
Aspose::Tasks::WeekDay::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.
dayType | The specified day type. |
workingTimes | Array of working time periods. |
Aspose::Tasks::WeekDay::WeekDay | ( | ) |
Initializes a new instance of the WeekDay class.
|
static |
System::SharedPtr<WeekDay> Aspose::Tasks::WeekDay::Clone | ( | ) |
Returns a deep copy of the week day.
|
static |
Creates default working day.
dayType | The day type to create default working day from. |
|
override |
Returns a value indicating whether this instance is equal to a specified object.
obj | The object to compare with this instance. |
Aspose::Tasks::DayType Aspose::Tasks::WeekDay::get_DayType | ( | ) | const |
Gets the type of a day.
bool Aspose::Tasks::WeekDay::get_DayWorking | ( | ) | const |
Gets a value indicating whether the specified date or day type is working.
System::DateTime Aspose::Tasks::WeekDay::get_FromDate | ( | ) | const |
Gets the beginning of an exception time.
System::DateTime Aspose::Tasks::WeekDay::get_ToDate | ( | ) | const |
Gets the end of an exception time.
System::SharedPtr<WorkingTimeCollection> Aspose::Tasks::WeekDay::get_WorkingTimes | ( | ) | const |
Gets WorkingTimeCollection for this WeekDay instance. The collection of working times that define the time worked on the weekday.
|
override |
Returns a hash code value for the instance of the WeekDay class.
System::TimeSpan Aspose::Tasks::WeekDay::GetWorkingTime | ( | ) |
Returns the working time for a week day.
void Aspose::Tasks::WeekDay::set_DayWorking | ( | bool | value | ) |
Sets a value indicating whether the specified date or day type is working.
void Aspose::Tasks::WeekDay::set_FromDate | ( | System::DateTime | value | ) |
Sets the beginning of an exception time.
void Aspose::Tasks::WeekDay::set_ToDate | ( | System::DateTime | value | ) |
Sets the end of an exception time.
|
static |
Sets default time periods for the specified week day.
day | The week day to set default working day on. |