=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tao / IORTable / IOR_Table_Impl.h
blob01f1d36cb74c576d2d41c81a1e35ce10bd8ef29f
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file IOR_Table_Impl.h
7 * @author Carlos O'Ryan (coryan@uci.edu)
8 */
9 //=============================================================================
12 #ifndef TAO_IOR_TABLE_IMPL_H
13 #define TAO_IOR_TABLE_IMPL_H
15 #include /**/ "ace/pre.h"
17 #include "tao/IORTable/IORTable.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "ace/Hash_Map_Manager_T.h"
24 #include "ace/Null_Mutex.h"
25 #include "tao/LocalObject.h"
26 #include "ace/SString.h"
27 #include "tao/Objref_VarOut_T.h"
29 #if defined(_MSC_VER)
30 #pragma warning(push)
31 #pragma warning(disable:4250)
32 #endif /* _MSC_VER */
34 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
36 class TAO_IORTable_Export TAO_IOR_Table_Impl;
37 typedef TAO_IOR_Table_Impl *TAO_IOR_Table_Impl_ptr;
38 typedef TAO_Objref_Var_T <TAO_IOR_Table_Impl> TAO_IOR_Table_Impl_var;
39 typedef TAO_Objref_Out_T <TAO_IOR_Table_Impl> TAO_IOR_Table_Impl_out;
41 class TAO_IORTable_Export TAO_IOR_Table_Impl
42 : public virtual IORTable::Table,
43 public virtual ::CORBA::LocalObject
45 public:
46 static TAO_IOR_Table_Impl_ptr _nil ()
48 return nullptr;
51 /// Constructor
52 TAO_IOR_Table_Impl ();
54 virtual bool async_available () { return false; }
56 /// Find the object, using the locator if it is not on the table.
57 char *find (const char *object_key);
59 /**
60 * @name The IORTable::Table methods
62 * Please check the IORTable.pidl file for details.
64 //@{
65 virtual void bind (const char * object_key, const char * IOR);
67 virtual void rebind (const char * object_key, const char * IOR);
69 virtual void unbind (const char * object_key);
71 virtual void set_locator (IORTable::Locator_ptr the_locator);
72 //@}
74 protected:
75 typedef ACE_Hash_Map_Manager_Ex <ACE_CString, ACE_CString,
76 ACE_Hash <ACE_CString>,
77 ACE_Equal_To <ACE_CString>,
78 ACE_Null_Mutex> Map;
80 /// The map
81 Map map_;
83 /// The locator
84 IORTable::Locator_var locator_;
86 /// Synchronization
87 TAO_SYNCH_MUTEX lock_;
90 // Traits specializations.
91 namespace TAO
93 template<>
94 struct TAO_IORTable_Export
95 Objref_Traits <TAO_IOR_Table_Impl>
97 static TAO_IOR_Table_Impl_ptr duplicate (TAO_IOR_Table_Impl_ptr);
99 static void release (TAO_IOR_Table_Impl_ptr);
101 static TAO_IOR_Table_Impl_ptr nil ();
103 static ::CORBA::Boolean marshal (const TAO_IOR_Table_Impl_ptr p,
104 TAO_OutputCDR &cdr);
110 TAO_END_VERSIONED_NAMESPACE_DECL
112 #if defined(_MSC_VER)
113 #pragma warning(pop)
114 #endif /* _MSC_VER */
116 #include /**/ "ace/post.h"
118 #endif /* TAO_IOR_TABLE_IMPL */