00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_ORB_INIT_INFO_H
00014 #define TAO_ORB_INIT_INFO_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/PI/pi_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/PI/PI_includeC.h"
00025 #include "tao/LocalObject.h"
00026
00027
00028
00029 #if defined(_MSC_VER)
00030 #pragma warning(push)
00031 #pragma warning(disable:4250)
00032 #endif
00033
00034 #if defined (__BORLANDC__)
00035 #pragma option push -w-rvl -w-rch -w-ccc -w-inl
00036 #endif
00037
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040 class TAO_ORB_Core;
00041 class TAO_ORBInitInfo;
00042 typedef TAO_ORBInitInfo *TAO_ORBInitInfo_ptr;
00043
00044 typedef TAO_Objref_Var_T<TAO_ORBInitInfo>
00045 TAO_ORBInitInfo_var;
00046
00047 typedef TAO_Objref_Out_T<TAO_ORBInitInfo>
00048 TAO_ORBInitInfo_out;
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 class TAO_PI_Export TAO_ORBInitInfo
00060 : public virtual PortableInterceptor::ORBInitInfo_3_1,
00061 public virtual ::CORBA::LocalObject
00062 {
00063 public:
00064
00065
00066 TAO_ORBInitInfo (TAO_ORB_Core *orb_core,
00067 int argc,
00068 char *argv[],
00069 PortableInterceptor::SlotId slotid);
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 virtual CORBA::StringSeq * arguments (void);
00081
00082
00083 virtual char * orb_id (void);
00084
00085
00086
00087 virtual IOP::CodecFactory_ptr codec_factory (void);
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099 virtual void register_initial_reference (const char * id, CORBA::Object_ptr obj);
00100
00101
00102
00103
00104 virtual CORBA::Object_ptr resolve_initial_references (const char * id);
00105
00106
00107
00108 virtual void add_client_request_interceptor (
00109 PortableInterceptor::ClientRequestInterceptor_ptr interceptor);
00110
00111
00112
00113 virtual void add_server_request_interceptor (
00114 PortableInterceptor::ServerRequestInterceptor_ptr interceptor);
00115
00116
00117
00118 virtual void add_ior_interceptor (
00119 PortableInterceptor::IORInterceptor_ptr interceptor);
00120
00121
00122
00123 virtual void add_client_request_interceptor_with_policy (
00124 PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
00125 const CORBA::PolicyList& policies);
00126
00127
00128
00129 virtual void add_server_request_interceptor_with_policy (
00130 PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
00131 const CORBA::PolicyList& policies);
00132
00133
00134
00135 virtual void add_ior_interceptor_with_policy (
00136 PortableInterceptor::IORInterceptor_ptr interceptor,
00137 const CORBA::PolicyList& policies);
00138
00139
00140
00141 virtual PortableInterceptor::SlotId allocate_slot_id (void);
00142
00143
00144
00145 virtual void register_policy_factory (
00146 CORBA::PolicyType type,
00147 PortableInterceptor::PolicyFactory_ptr policy_factory);
00148
00149 virtual CORBA::ORB_ptr _get_orb (void);
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169 size_t allocate_tss_slot_id (ACE_CLEANUP_FUNC cleanup);
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180 TAO_ORB_Core *orb_core (void) const;
00181
00182
00183
00184
00185
00186
00187 void invalidate (void);
00188
00189
00190
00191 PortableInterceptor::SlotId slot_count (void) const;
00192
00193
00194
00195
00196
00197
00198
00199
00200 typedef TAO_ORBInitInfo_ptr _ptr_type;
00201 typedef TAO_ORBInitInfo_var _var_type;
00202
00203 static TAO_ORBInitInfo_ptr _duplicate (TAO_ORBInitInfo_ptr obj);
00204
00205 static TAO_ORBInitInfo_ptr _narrow (CORBA::Object_ptr obj);
00206
00207
00208 static TAO_ORBInitInfo_ptr _unchecked_narrow (CORBA::Object_ptr obj);
00209
00210
00211 static TAO_ORBInitInfo_ptr _nil (void)
00212 {
00213 return (TAO_ORBInitInfo_ptr)0;
00214 }
00215
00216
00217 virtual const char* _interface_repository_id (void) const;
00218
00219 protected:
00220
00221
00222
00223 ~TAO_ORBInitInfo (void);
00224
00225
00226
00227
00228 void check_validity (void);
00229
00230 private:
00231
00232
00233
00234 TAO_ORBInitInfo (const TAO_ORBInitInfo &);
00235 void operator= (const TAO_ORBInitInfo &);
00236
00237 private:
00238
00239
00240 TAO_ORB_Core *orb_core_;
00241
00242
00243
00244 int argc_;
00245
00246
00247 char **argv_;
00248
00249
00250
00251 IOP::CodecFactory_var codec_factory_;
00252
00253
00254 PortableInterceptor::SlotId slot_count_;
00255
00256 };
00257
00258
00259 namespace TAO
00260 {
00261
00262 template<>
00263 struct TAO_PI_Export Objref_Traits<TAO_ORBInitInfo>
00264 {
00265 static TAO_ORBInitInfo_ptr duplicate (TAO_ORBInitInfo_ptr);
00266 static void release (TAO_ORBInitInfo_ptr);
00267 static TAO_ORBInitInfo_ptr nil (void);
00268 static CORBA::Boolean marshal (TAO_ORBInitInfo_ptr p, TAO_OutputCDR & cdr);
00269 };
00270 }
00271
00272 TAO_END_VERSIONED_NAMESPACE_DECL
00273
00274 #if defined (__ACE_INLINE__)
00275 #include "tao/PI/ORBInitInfo.inl"
00276 #endif
00277
00278 #if defined(_MSC_VER)
00279 #pragma warning(pop)
00280 #endif
00281
00282 #if defined (__BORLANDC__)
00283 #pragma option pop
00284 #endif
00285
00286 #include "ace/post.h"
00287
00288 #endif