diff options
author | zhangw <zhangw@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-15 23:26:37 +0000 |
---|---|---|
committer | zhangw <zhangw@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-15 23:26:37 +0000 |
commit | 54191a377b67a851dc03c754a23cb8aaca6b18b2 (patch) | |
tree | 3ecfcb7e0be56c06857e3faf607c85abb2988120 /TAO/utils/NamingViewer/NamingObject.cpp | |
parent | a6b6f9642d622fb9e274ef1e34f3e848ed3ae9dc (diff) | |
download | ATCD-54191a377b67a851dc03c754a23cb8aaca6b18b2.tar.gz |
Creating a branch of ACE+TAO+CIAO for OCI RT 9734
Diffstat (limited to 'TAO/utils/NamingViewer/NamingObject.cpp')
-rw-r--r-- | TAO/utils/NamingViewer/NamingObject.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/TAO/utils/NamingViewer/NamingObject.cpp b/TAO/utils/NamingViewer/NamingObject.cpp new file mode 100644 index 00000000000..3d47d9ca2c6 --- /dev/null +++ b/TAO/utils/NamingViewer/NamingObject.cpp @@ -0,0 +1,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; +} |