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