8 #include <system/timespan.h>
9 #include <system/object.h>
10 #include <system/date_time.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 class TimephasedDataMaker;
34 class ASPOSE_TASKS_SHARED_CLASS
WorkUnit :
public System::Object
37 typedef System::Object BaseType;
39 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
43 friend class Aspose::Tasks::TimephasedDataMaker;
50 ASPOSE_TASKS_SHARED_API System::DateTime
get_From()
const;
54 ASPOSE_TASKS_SHARED_API
void set_From(System::DateTime value);
58 ASPOSE_TASKS_SHARED_API System::DateTime
get_To()
const;
62 ASPOSE_TASKS_SHARED_API
void set_To(System::DateTime value);
82 ASPOSE_TASKS_SHARED_API
WorkUnit(System::DateTime from, System::DateTime to);
86 ASPOSE_TASKS_SHARED_API
WorkUnit(System::DateTime from, System::DateTime to, System::TimeSpan work);
88 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
WorkUnit, CODEPORTING_ARGS(System::DateTime from, System::DateTime to, System::TimeSpan work));
89 #ifdef ASPOSE_GET_SHARED_MEMBERS
90 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
96 System::DateTime pr_From;
97 System::DateTime pr_To;
98 System::TimeSpan pr_WorkingHours;
100 System::String get_DebuggerDisplay();
Represents a calendar used in a project.
Definition: Calendar.h:294
Represents working hours.
Definition: WorkUnit.h:35
System::DateTime get_To() const
Gets the To date.
WorkUnit(System::DateTime from, System::DateTime to)
Initializes a new instance of the WorkUnit class. Creates new WorkUnit object with the specified From...
System::DateTime get_From() const
Gets the From date.
void set_To(System::DateTime value)
Sets the To date.
System::TimeSpan get_WorkingHours() const
Gets the duration of working hours.
void set_WorkingHours(System::TimeSpan value)
Sets the duration of working hours.
void set_From(System::DateTime value)
Sets the From date.