Aspose.Tasks for C++
OutlineCode.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="OutlineCode.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 #include <cstdint>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 class OutlineCodeDefinition;
18 class OutlineValue;
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 /// <summary>
27 /// Represents a value of an outline code.
28 /// </summary>
29 /// <remarks>
30 /// Two pieces of data are necessary - a pointer to the outline code table
31 /// that is specified by the FieldId, and the value that is specified either
32 /// by the ValueId or ValueGuid pointer to the value list.
33 /// </remarks>
34 class ASPOSE_TASKS_SHARED_CLASS OutlineCode : public System::Object
35 {
36  typedef OutlineCode ThisType;
37  typedef System::Object BaseType;
38 
39  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
41 
42 public:
43 
44  /// <summary>
45  /// Gets the number value of the project Id custom field.
46  /// </summary>
47  ASPOSE_TASKS_SHARED_API System::String get_FieldId() const;
48  /// <summary>
49  /// Sets the number value of the project Id custom field.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API void set_FieldId(const System::String& value);
52  /// <summary>
53  /// Gets the Id in the value list associated with the definition in the outline code collection.
54  /// </summary>
55  ASPOSE_TASKS_SHARED_API int32_t get_ValueId() const;
56  /// <summary>
57  /// Sets the Id in the value list associated with the definition in the outline code collection.
58  /// </summary>
59  ASPOSE_TASKS_SHARED_API void set_ValueId(int32_t value);
60  /// <summary>
61  /// Gets the GUID of the value in the value list. The ValueGuid matches the FieldGuid in the value list.
62  /// </summary>
63  ASPOSE_TASKS_SHARED_API System::String get_ValueGuid() const;
64  /// <summary>
65  /// Sets the GUID of the value in the value list. The ValueGuid matches the FieldGuid in the value list.
66  /// </summary>
67  ASPOSE_TASKS_SHARED_API void set_ValueGuid(const System::String& value);
68 
69  /// <summary>
70  /// Initializes a new instance of the <see cref="OutlineCode"></see> class.
71  /// </summary>
72  ASPOSE_TASKS_SHARED_API OutlineCode();
73  /// <summary>
74  /// Initializes a new instance of the <see cref="OutlineCode"></see> class using the specified Outline Code and one of its values.
75  /// </summary>
76  ASPOSE_TASKS_SHARED_API OutlineCode(const System::SharedPtr<OutlineCodeDefinition>& codeDefinition, const System::SharedPtr<OutlineValue>& outlineValue);
77 
78 private:
79 
80  System::String pr_FieldId;
81  int32_t pr_ValueId;
82  System::String pr_ValueGuid;
83 
84  System::String get_DebuggerDisplay();
85 
86 };
87 
88 } // namespace Tasks
89 } // namespace Aspose
90 
91 
Represents a value of an outline code.
Definition: OutlineCode.h:35
int32_t get_ValueId() const
Gets the Id in the value list associated with the definition in the outline code collection.
void set_ValueGuid(const System::String &value)
Sets the GUID of the value in the value list. The ValueGuid matches the FieldGuid in the value list.
OutlineCode(const System::SharedPtr< OutlineCodeDefinition > &codeDefinition, const System::SharedPtr< OutlineValue > &outlineValue)
Initializes a new instance of the OutlineCode class using the specified Outline Code and one of its v...
System::String get_ValueGuid() const
Gets the GUID of the value in the value list. The ValueGuid matches the FieldGuid in the value list.
System::String get_FieldId() const
Gets the number value of the project Id custom field.
OutlineCode()
Initializes a new instance of the OutlineCode class.
void set_ValueId(int32_t value)
Sets the Id in the value list associated with the definition in the outline code collection.
void set_FieldId(const System::String &value)
Sets the number value of the project Id custom field.
Definition: Asn.h:13