Aspose.Tasks for C++
VbaModuleAttribute.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="VbaModuleAttribute.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 <system/iequatable.h>
10 #include <cstdint>
11 
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Tasks
17 {
18 namespace Vba
19 {
20 class VbaSourceCodeParser;
21 } // namespace Vba
22 } // namespace Tasks
23 } // namespace Aspose
24 
25 namespace Aspose {
26 
27 namespace Tasks {
28 
29 /// <summary>
30 /// The attribute of the <see cref="VbaModule"></see> object
31 /// </summary>
32 class ASPOSE_TASKS_SHARED_CLASS VbaModuleAttribute : public System::IEquatable<System::SharedPtr<Aspose::Tasks::VbaModuleAttribute>>
33 {
35  typedef System::IEquatable<System::SharedPtr<Aspose::Tasks::VbaModuleAttribute>> BaseType;
36 
37  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
38  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
39 
40  friend class Aspose::Tasks::Vba::VbaSourceCodeParser;
41 
42 public:
43 
44  /// <summary>
45  /// Gets key of VBA module attribute.
46  /// </summary>
47  ASPOSE_TASKS_SHARED_API System::String get_Key() const;
48  /// <summary>
49  /// Gets value of VBA module attribute.
50  /// </summary>
51  ASPOSE_TASKS_SHARED_API System::String get_Value() const;
52 
53  /// <summary>
54  /// Returns a value indicating whether this instance is equal to the specified <see cref="VbaModuleAttribute"></see> object.
55  /// </summary>
56  /// <param name="other">The specified <see cref="VbaModuleAttribute"></see> object to compare with this instance.</param>
57  /// <returns>Returns true if this instance is equal to the specified <see cref="VbaModuleAttribute"></see> object; otherwise, false.</returns>
58  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<VbaModuleAttribute> other) override;
59  /// <summary>
60  /// Returns a value indicating whether this instance is equal to the specified <see cref="VbaModuleAttribute"></see> object.
61  /// </summary>
62  /// <param name="obj">The specified <see cref="VbaModuleAttribute"></see> object to compare with this instance.</param>
63  /// <returns>Returns true if this instance is equal to the specified <see cref="VbaModuleAttribute"></see> object; otherwise, false.</returns>
64  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<System::Object> obj) override;
65  /// <summary>
66  /// Returns a hash code value for this <see cref="VbaModuleAttribute"></see>.
67  /// </summary>
68  /// <returns>Returns a hash code value for this object.</returns>
69  ASPOSE_TASKS_SHARED_API int32_t GetHashCode() const override;
70 
71 protected:
72 
73  ASPOSE_TASKS_SHARED_API VbaModuleAttribute();
74 
75  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(VbaModuleAttribute, CODEPORTING_ARGS());
76 
77  ASPOSE_TASKS_SHARED_API VbaModuleAttribute(const System::String& key, const System::String& value);
78 
79  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(VbaModuleAttribute, CODEPORTING_ARGS(const System::String& key, const System::String& value));
80 
81  virtual ASPOSE_TASKS_SHARED_API ~VbaModuleAttribute();
82 
83 private:
84 
85  System::String key;
86  System::String value;
87 
88 };
89 
90 } // namespace Tasks
91 } // namespace Aspose
92 
93 
The attribute of the VbaModule object
Definition: VbaModuleAttribute.h:33
int32_t GetHashCode() const override
Returns a hash code value for this VbaModuleAttribute.
System::String get_Key() const
Gets key of VBA module attribute.
System::String get_Value() const
Gets value of VBA module attribute.
bool Equals(System::SharedPtr< VbaModuleAttribute > other) override
Returns a value indicating whether this instance is equal to the specified VbaModuleAttribute object.
bool Equals(System::SharedPtr< System::Object > obj) override
Returns a value indicating whether this instance is equal to the specified VbaModuleAttribute object.
Definition: Asn.h:13