summaryrefslogtreecommitdiff
path: root/src/binder/inc/assemblyentry.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/binder/inc/assemblyentry.hpp')
-rw-r--r--src/binder/inc/assemblyentry.hpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/binder/inc/assemblyentry.hpp b/src/binder/inc/assemblyentry.hpp
new file mode 100644
index 0000000000..d0bf27b2d5
--- /dev/null
+++ b/src/binder/inc/assemblyentry.hpp
@@ -0,0 +1,62 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+// ============================================================
+//
+// AssemblyEntry.hpp
+//
+
+
+//
+// Defines the AssemblyEntry class
+//
+// ============================================================
+
+#ifndef __BINDER__ASSEMBLY_ENTRY_HPP__
+#define __BINDER__ASSEMBLY_ENTRY_HPP__
+
+#include "bindertypes.hpp"
+#include "assemblyname.hpp"
+
+namespace BINDER_SPACE
+{
+ class AssemblyEntry
+ {
+ public:
+ AssemblyEntry()
+ {
+ m_pAssemblyName = NULL;
+ }
+ virtual ~AssemblyEntry()
+ {
+ SAFE_RELEASE(m_pAssemblyName);
+ }
+
+ AssemblyName *GetAssemblyName(BOOL fAddRef = FALSE)
+ {
+ AssemblyName *pAssemblyName = m_pAssemblyName;
+
+ if (fAddRef && (pAssemblyName != NULL))
+ {
+ pAssemblyName->AddRef();
+ }
+ return pAssemblyName;
+ }
+
+ void SetAssemblyName(AssemblyName *pAssemblyName, BOOL fAddRef = TRUE)
+ {
+ SAFE_RELEASE(m_pAssemblyName);
+
+ if (fAddRef && (pAssemblyName != NULL))
+ {
+ pAssemblyName->AddRef();
+ }
+
+ m_pAssemblyName = pAssemblyName;
+ }
+ protected:
+ AssemblyName *m_pAssemblyName;
+ };
+};
+
+#endif