blob: 0823bfd7f6b64d4eef9dce7e4de4e0f3a4b02498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "NamingViewer.h"
#include "NamingObject.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CNamingObject::CNamingObject(CosNaming::Name &Name,
CORBA::Object_ptr pObject,
bool Context)
: m_Name (Name),
m_Object (CORBA::Object::_duplicate (pObject)),
m_Context (Context)
{
}
CNamingObject::~CNamingObject (void)
{
}
CosNaming::NamingContext_ptr CNamingObject::NamingContext (void)
{
return CosNaming::NamingContext::_narrow (m_Object);
}
CORBA::Object_ptr CNamingObject::Object (void)
{
return m_Object;
}
CosNaming::Name& CNamingObject::Name (void)
{
return m_Name;
}
|