1 // NamingObject.h: interface for the CNamingObject class.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_NAMINGOBJECT_H__1F34ADC4_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_)
6 #define AFX_NAMINGOBJECT_H__1F34ADC4_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_
10 #endif // _MSC_VER > 1000
12 #include "orbsvcs/CosNamingC.h"
17 CNamingObject (CosNaming::Name
& Name
,
18 CORBA::Object_ptr pObject
,
22 CosNaming::NamingContext_ptr
NamingContext ();
24 // Returns a duplicated naming context ptr if this is a context or
26 CORBA::Object_ptr
Object ();
28 // returns a non duplicated object reference
29 CosNaming::Name
& Name ();
30 // returns the name of the object
32 bool IsContext () { return m_Context
; }
34 // Returns true if this is a context
36 CORBA::Object_var m_Object
;
37 CosNaming::Name m_Name
;
41 #endif // !defined(AFX_NAMINGOBJECT_H__1F34ADC4_B0D8_11D3_BF27_00C0F03C565A__INCLUDED_)