GME  13
MgaObjectProxy.h
Go to the documentation of this file.
00001 // MgaObjectProxy.h: interface for the CMgaObjectProxy class.
00002 //
00004 
00005 #if !defined(AFX_MGAOBJECTPROXY_H__EA2347EB_A339_4227_92F6_686F7CC8023D__INCLUDED_)
00006 #define AFX_MGAOBJECTPROXY_H__EA2347EB_A339_4227_92F6_686F7CC8023D__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "stdafx.h"
00013 
00014 class CMgaObjectProxy  
00015 {
00016 public:
00017         CMgaObjectProxy(){};
00018         CMgaObjectProxy(LPUNKNOWN pMgaObject, objtype_enum type) :
00019                 m_pMgaObject(pMgaObject),
00020                 m_TypeInfo(type)
00021         {
00022         }
00023 
00024         CMgaObjectProxy(const CMgaObjectProxy& that) { *this = that; }
00025         virtual ~CMgaObjectProxy() {}
00026 
00027         void CMgaObjectProxy::operator =(const CMgaObjectProxy &rSourceObjectProxy)
00028         {
00029                 m_pMgaObject = rSourceObjectProxy.m_pMgaObject;
00030                 m_TypeInfo = rSourceObjectProxy.m_TypeInfo;
00031         }
00032 
00033         LPUNKNOWN m_pMgaObject;
00034         objtype_enum m_TypeInfo;
00035 };
00036 
00037 #endif // !defined(AFX_MGAOBJECTPROXY_H__EA2347EB_A339_4227_92F6_686F7CC8023D__INCLUDED_)