summaryrefslogtreecommitdiff
path: root/TAO/utils/wxNamingViewer/wxNamingObject.cpp
blob: adff88529e56c807825748a2afeb118250f5bf54 (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
47
// $Id$
// wxNamingObject.cpp

#include "pch.h"
#include "wxNamingObject.h"


WxNamingObject::WxNamingObject(
    CosNaming::Name& Name,
    CORBA::Object_ptr pObject,
    bool Context)
  : m_Object(CORBA::Object::_duplicate(pObject))
  , m_Name(Name)
  , m_Context(Context)
{
  // Empty
}


WxNamingObject::WxNamingObject( CORBA::Object_ptr pObject):
  m_Object(CORBA::Object::_duplicate(pObject))
{
  // Empty
}

WxNamingObject::~WxNamingObject()
{
  // Empty
}


CosNaming::NamingContext_ptr WxNamingObject::NamingContext()
{
  return CosNaming::NamingContext::_narrow(m_Object.in());
}


CORBA::Object_ptr WxNamingObject::Object()
{
  return m_Object.in();
}


CosNaming::Name& WxNamingObject::Name()
{
  return m_Name;
}