Aspose.Tasks for C++
BuiltInProjectProperty.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="BuiltInProjectProperty.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 
10 #include "aspose.tasks.cpp/PropertyCollections/Property.h"
11 #include "aspose.tasks.cpp/Key.h"
12 #include "aspose.tasks.cpp/Enums/PrjKey.h"
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
14 
15 namespace Aspose
16 {
17 namespace Tasks
18 {
19 class Project;
20 namespace Properties
21 {
22 class BuiltInProjectPropertyCollection;
23 } // namespace Properties
24 } // namespace Tasks
25 } // namespace Aspose
26 
27 namespace Aspose {
28 
29 namespace Tasks {
30 
31 namespace Properties {
32 
33 /// <summary>
34 /// Represents a built-in property.
35 /// </summary>
36 class ASPOSE_TASKS_SHARED_CLASS BuiltInProjectProperty final : public Aspose::Tasks::Properties::Property
37 {
40 
41  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
42  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
43 
45 
46 public:
47 
48  /// <summary>
49  /// Gets the value of the property.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API System::String get_Value() const;
52  /// <summary>
53  /// Sets the value of the property.
54  /// </summary>
55  ASPOSE_TASKS_SHARED_API void set_Value(const System::String& value);
56 
57 protected:
58 
59  /// <summary>
60  /// Initializes a new instance of the <see cref="BuiltInProjectProperty"></see> class.
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API BuiltInProjectProperty(const System::SharedPtr<Project>& project, Key<System::String, PrjKey> key);
63 
64  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(BuiltInProjectProperty, CODEPORTING_ARGS(const System::SharedPtr<Project>& project, Key<System::String, PrjKey> key));
65  ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Object> GetValue() const override;
66  ASPOSE_TASKS_SHARED_API void SetValue(System::SharedPtr<System::Object> val) override;
67  #ifdef ASPOSE_GET_SHARED_MEMBERS
68  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
69  #endif
70 
71 
72 private:
73 
74  System::WeakPtr<Project> project;
76 
77 };
78 
79 } // namespace Properties
80 } // namespace Tasks
81 } // namespace Aspose
82 
83 
Represents a base class of a property.
Definition: Property.h:33
Represents a collection of built-in project properties.
Definition: BuiltInProjectPropertyCollection.h:35
Represents a built-in property.
Definition: BuiltInProjectProperty.h:36