blob: 3d47d9ca2c65693810e79ac6e13e17f74793baf0 (
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
44
45
46
|
// $Id$
//////////////////////////////////////////////////////////////////////
#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;
}
|