00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_POA_CURRENT_IMPL_H
00014 #define TAO_POA_CURRENT_IMPL_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/PortableServer/portableserver_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/PortableServer/PS_ForwardC.h"
00025
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028 #ifndef TAO_POA_OBJECT_ID_BUF_SIZE
00029 #define TAO_POA_OBJECT_ID_BUF_SIZE 512
00030 #endif
00031
00032 namespace TAO
00033 {
00034 namespace Portable_Server
00035 {
00036 class Non_Servant_Upcall;
00037 class Servant_Upcall;
00038 }
00039
00040 class ObjectKey;
00041 }
00042
00043 class TAO_TSS_Resources;
00044
00045 namespace TAO
00046 {
00047 namespace Portable_Server
00048 {
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066 class TAO_PortableServer_Export POA_Current_Impl
00067 {
00068 public:
00069 friend class ::TAO_Root_POA;
00070
00071
00072
00073 PortableServer::POA_ptr get_POA (void);
00074
00075
00076
00077
00078
00079
00080 PortableServer::ObjectId *get_object_id (void);
00081
00082
00083
00084
00085
00086 PortableServer::Servant get_servant (void);
00087
00088
00089
00090
00091
00092 CORBA::Object_ptr get_reference (void);
00093
00094
00095 void poa (::TAO_Root_POA *);
00096
00097
00098 ::TAO_Root_POA *poa (void) const;
00099
00100
00101 TAO_ORB_Core &orb_core (void) const;
00102
00103
00104 void object_id (const PortableServer::ObjectId &id);
00105
00106
00107 const PortableServer::ObjectId &object_id (void) const;
00108
00109
00110 void replace_object_id (const PortableServer::ObjectId &system_id);
00111
00112
00113 void object_key (const TAO::ObjectKey &key);
00114
00115
00116 const TAO::ObjectKey &object_key (void) const;
00117
00118
00119 void servant (PortableServer::Servant servant);
00120
00121
00122 PortableServer::Servant servant (void) const;
00123
00124
00125 void priority (CORBA::Short priority);
00126
00127
00128 CORBA::Short priority (void) const;
00129
00130
00131 POA_Current_Impl (void);
00132
00133
00134 POA_Current_Impl *previous (void) const;
00135
00136
00137 void teardown (void);
00138
00139
00140 void setup (::TAO_Root_POA *impl, const TAO::ObjectKey &key);
00141
00142 private:
00143
00144
00145 POA_Current_Impl (const POA_Current_Impl &);
00146 void operator= (const POA_Current_Impl &);
00147
00148 protected:
00149
00150 ::TAO_Root_POA *poa_;
00151
00152
00153
00154 CORBA::Octet object_id_buf_[TAO_POA_OBJECT_ID_BUF_SIZE];
00155
00156
00157
00158
00159
00160
00161 PortableServer::ObjectId object_id_;
00162
00163
00164 const TAO::ObjectKey *object_key_;
00165
00166
00167 PortableServer::Servant servant_;
00168
00169
00170 CORBA::Short priority_;
00171
00172
00173 POA_Current_Impl *previous_current_impl_;
00174
00175
00176 bool setup_done_;
00177
00178
00179 TAO_TSS_Resources *tss_resources_;
00180
00181 };
00182 }
00183 }
00184
00185 TAO_END_VERSIONED_NAMESPACE_DECL
00186
00187 #if defined (__ACE_INLINE__)
00188 # include "tao/PortableServer/POA_Current_Impl.inl"
00189 #endif
00190
00191 #include "ace/post.h"
00192
00193 #endif