Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / utils / NamingViewer / NamingObject.cpp
blob5de175f66848c4ce38efeb9912b0b84ef8fef744
1 //////////////////////////////////////////////////////////////////////
3 #include "stdafx.h"
4 #include "NamingViewer.h"
5 #include "NamingObject.h"
7 #ifdef _DEBUG
8 #undef THIS_FILE
9 static char THIS_FILE[]=__FILE__;
10 #define new DEBUG_NEW
11 #endif
13 //////////////////////////////////////////////////////////////////////
14 // Construction/Destruction
15 //////////////////////////////////////////////////////////////////////
17 CNamingObject::CNamingObject(CosNaming::Name &Name,
18 CORBA::Object_ptr pObject,
19 bool Context)
20 : m_Name (Name),
21 m_Object (CORBA::Object::_duplicate (pObject)),
22 m_Context (Context)
26 CNamingObject::~CNamingObject ()
30 CosNaming::NamingContext_ptr CNamingObject::NamingContext ()
32 return CosNaming::NamingContext::_narrow (m_Object);
35 CORBA::Object_ptr CNamingObject::Object ()
37 return m_Object;
40 CosNaming::Name& CNamingObject::Name ()
42 return m_Name;