exposedobject.cpp

来自「一个很不错的Script解释器」· C++ 代码 · 共 49 行

CPP
49
字号
// ExposedObject.cpp: implementation of the EEExposedObject class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ExposedObject.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

ExposedObject::ExposedObject()
{
	m_pExposedObject = NULL;
	m_ObjectName     = "";
}

ExposedObject::~ExposedObject()
{

}

void ExposedObject::SetExposedObject(IUnknown *newExposedObject)
{
	ASSERT(newExposedObject);
	m_pExposedObject = newExposedObject;
}

IUnknown* ExposedObject::GetObjectInterface()
{
	return m_pExposedObject;
}

void ExposedObject::SetObjectName(CString newName)
{
	m_ObjectName = newName;
}

CString ExposedObject::GetObjectName()
{
	return m_ObjectName;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?