Aspose.Tasks for C++
VbaReference.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="VbaReference.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 <system/guid.h>
11 #include <cstdint>
12 
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
14 
15 namespace Aspose
16 {
17 namespace Tasks
18 {
19 namespace Vba
20 {
21 class VbaProjectReferencesReader;
22 } // namespace Vba
23 } // namespace Tasks
24 } // namespace Aspose
25 
26 namespace Aspose {
27 
28 namespace Tasks {
29 
30 /// <summary>
31 /// Represents a reference of the <see cref="VbaProject"></see>.
32 /// </summary>
33 class ASPOSE_TASKS_SHARED_CLASS VbaReference final : public System::IEquatable<System::SharedPtr<Aspose::Tasks::VbaReference>>
34 {
35  typedef VbaReference ThisType;
36  typedef System::IEquatable<System::SharedPtr<Aspose::Tasks::VbaReference>> BaseType;
37 
38  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
40 
41  friend class Aspose::Tasks::Vba::VbaProjectReferencesReader;
42 
43 public:
44 
45  /// <summary>
46  /// Gets identifier of the library.
47  /// </summary>
48  ASPOSE_TASKS_SHARED_API System::String get_LibIdentifier() const;
49  /// <summary>
50  /// Gets name of VBA reference.
51  /// </summary>
52  ASPOSE_TASKS_SHARED_API System::String get_Name() const;
53  /// <summary>
54  /// Sets name of VBA reference.
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API void set_Name(const System::String& value);
57 
58  /// <summary>
59  /// Returns a value indicating whether this instance is equal to the specified <see cref="VbaReference"></see> object.
60  /// </summary>
61  /// <param name="other">The specified <see cref="VbaReference"></see> object to compare with this instance.</param>
62  /// <returns>Returns true if this instance is equal to the specified <see cref="VbaReference"></see> object; otherwise, false.</returns>
63  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<VbaReference> other) override;
64  /// <summary>
65  /// Returns a value indicating whether this instance is equal to the specified <see cref="VbaReference"></see> object.
66  /// </summary>
67  /// <param name="obj">The specified <see cref="VbaReference"></see> object to compare with this instance.</param>
68  /// <returns>Returns true if this instance is equal to the specified <see cref="VbaReference"></see> object; otherwise, false.</returns>
69  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<System::Object> obj) override;
70  /// <summary>
71  /// Returns a hash code value for this <see cref="VbaReference"></see>.
72  /// </summary>
73  /// <returns>Returns a hash code value for this object.</returns>
74  ASPOSE_TASKS_SHARED_API int32_t GetHashCode() const override;
75 
76  ASPOSE_TASKS_SHARED_API VbaReference();
77 
78 protected:
79 
80  /// <summary>
81  /// Gets identifier of the library.
82  /// </summary>
83  ASPOSE_TASKS_SHARED_API void set_LibIdentifier(const System::String& value);
84  ASPOSE_TASKS_SHARED_API System::String get_UnicodeName() const;
85  ASPOSE_TASKS_SHARED_API void set_UnicodeName(const System::String& value);
86 
87  virtual ASPOSE_TASKS_SHARED_API ~VbaReference();
88 
89  #ifdef ASPOSE_GET_SHARED_MEMBERS
90  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
91  #endif
92 
93 
94 private:
95 
96  System::Guid id;
97  System::String pr_LibIdentifier;
98  System::String pr_Name;
99  System::String pr_UnicodeName;
100 
101 };
102 
103 } // namespace Tasks
104 } // namespace Aspose
105 
106 
Represents a reference of the VbaProject.
Definition: VbaReference.h:34
void set_Name(const System::String &value)
Sets name of VBA reference.
System::String get_Name() const
Gets name of VBA reference.
System::String get_LibIdentifier() const
Gets identifier of the library.
int32_t GetHashCode() const override
Returns a hash code value for this VbaReference.
bool Equals(System::SharedPtr< VbaReference > other) override
Returns a value indicating whether this instance is equal to the specified VbaReference object.
bool Equals(System::SharedPtr< System::Object > obj) override
Returns a value indicating whether this instance is equal to the specified VbaReference object.
Definition: Asn.h:13