Aspose.Tasks for C++
GraphicalIndicatorCriteria.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="GraphicalIndicatorCriteria.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 enum class FilterComparisonType;
18 enum class GraphicalIndicatorCriteriaType;
19 class GraphicalIndicatorCriteriaValue;
20 } // namespace Tasks
21 } // namespace Aspose
22 namespace System
23 {
24 namespace Text
25 {
26 class StringBuilder;
27 } // namespace Text
28 } // namespace System
29 
30 namespace Aspose {
31 
32 namespace Tasks {
33 
34 /// <summary>
35 /// Represents one graphical indicator criteria associated with an extended attribute.
36 /// </summary>
37 class ASPOSE_TASKS_SHARED_CLASS GraphicalIndicatorCriteria final : public System::Object
38 {
40  typedef System::Object BaseType;
41 
42  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
44 
45 public:
46 
47  /// <summary>
48  /// Gets the type of comparison made between extended attribute's value and Values that acts as a criteria for the application of the graphical indicator.
49  /// <see cref="FilterComparisonType"></see>
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API FilterComparisonType get_Test() const;
52  /// <summary>
53  /// Gets the value used to test extended attribute's value.
54  /// </summary>
55  ASPOSE_TASKS_SHARED_API const System::SharedPtr<GraphicalIndicatorCriteriaValue>& get_Value1() const;
56  /// <summary>
57  /// Gets the second value used to test extended attribute's value in case of 'IsWithin' and 'IsNotWithin' comparison types.
58  /// </summary>
59  ASPOSE_TASKS_SHARED_API const System::SharedPtr<GraphicalIndicatorCriteriaValue>& get_Value2() const;
60  /// <summary>
61  /// Gets the index of the image to display when the field meets the criteria.
62  /// </summary>
63  ASPOSE_TASKS_SHARED_API int32_t get_ImageIndex() const;
64  /// <summary>
65  /// Gets the value of <see cref="GraphicalIndicatorCriteriaType"></see> enum which denotes for which rows the indicator is applied.
66  /// </summary>
67  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteriaType get_RowType() const;
68 
69  /// <summary>
70  /// Initializes a new instance of the <see cref="GraphicalIndicatorCriteria"></see> type.
71  /// </summary>
72  /// <param name="rowType">value of <see cref="GraphicalIndicatorCriteriaType"></see> enum which denotes for which rows the indicator is applied</param>
73  /// <param name="test">value of <see cref="FilterComparisonType"></see> denoting the type of comparison performed by the criteria.</param>
74  /// <param name="imageIndex">the index of the image to display when the field meets the criteria</param>
75  /// <param name="value1">values used in condition check.</param>
76  /// <param name="value2">second value (end of interval) used in condition check in case of 'IsWithin' and 'IsNotWithing' conditions.</param>
77  /// <exception cref="ArgumentException">Thrown when incorrect combination of arguments is passed to the constructor.</exception>
78  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteria(GraphicalIndicatorCriteriaType rowType, FilterComparisonType test, int32_t imageIndex, const System::SharedPtr<GraphicalIndicatorCriteriaValue>& value1, const System::SharedPtr<GraphicalIndicatorCriteriaValue>& value2);
79  /// <summary>
80  /// Initializes a new instance of the <see cref="GraphicalIndicatorCriteria"></see> type.
81  /// </summary>
82  /// <param name="rowType">value of <see cref="GraphicalIndicatorCriteriaType"></see> enum which denotes for which rows the indicator is applied</param>
83  /// <param name="test">value of <see cref="FilterComparisonType"></see> denoting the type of comparison performed by the criteria.</param>
84  /// <param name="imageIndex">the index of the image to display when the field meets the criteria</param>
85  /// <param name="value">value used in condition check.</param>
86  /// <exception cref="ArgumentException">Thrown when incorrect combination of arguments is passed to the constructor.</exception>
87  /// <exception cref="ArgumentException">When value of IsWithin of IsNotWithing is passed to test argument. </exception>
88  ASPOSE_TASKS_SHARED_API GraphicalIndicatorCriteria(GraphicalIndicatorCriteriaType rowType, FilterComparisonType test, int32_t imageIndex, const System::SharedPtr<GraphicalIndicatorCriteriaValue>& value);
89 
90  /// <summary>
91  /// Returns string representation of the instance of the <see cref="GraphicalIndicatorCriteria"></see> class.
92  /// </summary>
93  /// <returns>string representation of this object.</returns>
94  ASPOSE_TASKS_SHARED_API System::String ToString() const override;
95 
96 protected:
97 
98  #ifdef ASPOSE_GET_SHARED_MEMBERS
99  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
100  #endif
101 
102 
103 private:
104 
105  FilterComparisonType pr_Test;
106 
107  /// <summary>
108  /// Gets the type of comparison made between extended attribute's value and Values that acts as a criteria for the application of the graphical indicator.
109  /// <see cref="FilterComparisonType"></see>
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API void set_Test(FilterComparisonType value);
112 
113  System::SharedPtr<GraphicalIndicatorCriteriaValue> pr_Value1;
114 
115  /// <summary>
116  /// Gets the value used to test extended attribute's value.
117  /// </summary>
118  ASPOSE_TASKS_SHARED_API void set_Value1(const System::SharedPtr<GraphicalIndicatorCriteriaValue>& value);
119 
120  System::SharedPtr<GraphicalIndicatorCriteriaValue> pr_Value2;
121 
122  /// <summary>
123  /// Gets the second value used to test extended attribute's value in case of 'IsWithin' and 'IsNotWithin' comparison types.
124  /// </summary>
125  ASPOSE_TASKS_SHARED_API void set_Value2(const System::SharedPtr<GraphicalIndicatorCriteriaValue>& value);
126 
127  int32_t pr_ImageIndex;
128 
129  /// <summary>
130  /// Gets the index of the image to display when the field meets the criteria.
131  /// </summary>
132  ASPOSE_TASKS_SHARED_API void set_ImageIndex(int32_t value);
133 
134  GraphicalIndicatorCriteriaType pr_RowType;
135 
136  /// <summary>
137  /// Gets the value of <see cref="GraphicalIndicatorCriteriaType"></see> enum which denotes for which rows the indicator is applied.
138  /// </summary>
139  ASPOSE_TASKS_SHARED_API void set_RowType(GraphicalIndicatorCriteriaType value);
140 
141  System::String ToString_NonConst();
142  void AppendValues(const System::SharedPtr<System::Text::StringBuilder>& sb, bool isIntervalCondition);
143 
144 };
145 
146 } // namespace Tasks
147 } // namespace Aspose
148 
149 
Represents one graphical indicator criteria associated with an extended attribute.
Definition: GraphicalIndicatorCriteria.h:37