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