Aspose.Tasks for C++
GraphicalIndicatorCriteriaValue.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="GraphicalIndicatorCriteriaValue.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/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 class Duration;
17 enum class Field;
18 } // namespace Tasks
19 } // namespace Aspose
20 namespace System
21 {
22 class DateTime;
23 class Decimal;
24 } // namespace System
25 
26 namespace Aspose {
27 
28 namespace Tasks {
29 
30 /// <summary>
31 /// Represents a value used in condition check of graphical indicators criteria.
32 /// </summary>
33 class ASPOSE_TASKS_SHARED_CLASS GraphicalIndicatorCriteriaValue final : public System::Object
34 {
36  typedef System::Object BaseType;
37 
38  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
40 
41 public:
42 
43  /// <summary>
44  /// Gets the underlying constant of Field value.
45  /// </summary>
46  ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Object> get_RawValue() const;
47  /// <summary>
48  /// Gets whether the current instance is a field link (represents a value of a field).
49  /// </summary>
50  ASPOSE_TASKS_SHARED_API bool get_IsFieldLink() const;
51 
52  /// <summary>
53  /// Creates an instance of GraphicalIndicatorCriteriaValue class representing the value of the specified MS Project's field.
54  /// </summary>
55  /// <param name="field"></param>
56  /// <returns>instance of GraphicalIndicatorCriteriaValue class representing the value of the specified field.</returns>
57  static ASPOSE_TASKS_SHARED_API System::SharedPtr<GraphicalIndicatorCriteriaValue> CreateFieldLink(Field field);
58 
59  /// <summary>
60  /// Creates an instance of GraphicalIndicatorCriteriaValue class with constant decimal value.
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteriaValue(System::Decimal value);
63  /// <summary>
64  /// Creates an instance of GraphicalIndicatorCriteriaValue class with constant DateTime value.
65  /// </summary>
66  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteriaValue(System::DateTime dateValue);
67  /// <summary>
68  /// Creates an instance of GraphicalIndicatorCriteriaValue class with constant string value.
69  /// </summary>
70  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteriaValue(const System::String& textValue);
71  /// <summary>
72  /// Creates an instance of GraphicalIndicatorCriteriaValue class with constant Duration value.
73  /// </summary>
74  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteriaValue(Duration durationValue);
75  /// <summary>
76  /// Creates an instance of GraphicalIndicatorCriteriaValue class with constant flag (bool) value.
77  /// </summary>
78  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteriaValue(bool flagValue);
79 
80  /// <summary>
81  /// Returns a string that represents the current object.
82  /// </summary>
83  /// <returns>A string that represents the current object.</returns>
84  ASPOSE_TASKS_SHARED_API System::String ToString() const override;
85 
86 protected:
87 
88  #ifdef ASPOSE_GET_SHARED_MEMBERS
89  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
90  #endif
91 
92 
93 private:
94 
95  System::SharedPtr<System::Object> rawValue;
96  bool isFieldLink;
97 
98  GraphicalIndicatorCriteriaValue(const System::SharedPtr<System::Object>& rawValue, bool isFieldLink);
99 
100  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(GraphicalIndicatorCriteriaValue, CODEPORTING_ARGS(const System::SharedPtr<System::Object>& rawValue, bool isFieldLink));
101  System::String ToString_NonConst();
102 
103 };
104 
105 } // namespace Tasks
106 } // namespace Aspose
107 
108 
Represents duration in a project.
Definition: Duration.h:162
Represents a value used in condition check of graphical indicators criteria.
Definition: GraphicalIndicatorCriteriaValue.h:33