Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / utils / wxNamingViewer / wxNamingObject.h
blob2a65a0eb6d9b067743388e796057bba650efebc7
1 // wxNamingObject.h
3 #ifndef i_wxNamingObject_h
4 #define i_wxNamingObject_h
6 #include "orbsvcs/CosNamingC.h"
7 #include "wx/treectrl.h"
9 class WxNamingObject:
10 public wxTreeItemData
12 public:
13 WxNamingObject(
14 CosNaming::Name& Name,
15 CORBA::Object_ptr pObject,
16 bool Context);
17 WxNamingObject( CORBA::Object_ptr pObject);
18 ~WxNamingObject();
20 CosNaming::NamingContext_ptr NamingContext();
21 // Returns a duplicated naming context ptr if this is a context or nil if its not
22 CORBA::Object_ptr Object();
23 // returns a non duplicated object reference
24 CosNaming::Name& Name();
25 // returns the name of the object
26 bool IsContext() {return m_Context;};
27 // Returns true if this is a context
29 private:
30 CORBA::Object_var m_Object;
31 CosNaming::Name m_Name;
32 bool m_Context;
35 #endif