00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef _TAO_IDL_ORIG_DOMAINC_H_
00032 #define _TAO_IDL_ORIG_DOMAINC_H_
00033
00034 #include "ace/pre.h"
00035
00036
00037 #include "ace/config-all.h"
00038
00039 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00040 # pragma once
00041 #endif
00042
00043 #include "tao/TAO_Export.h"
00044 #include "tao/ORB.h"
00045 #include "tao/SystemException.h"
00046 #include "tao/Environment.h"
00047 #include "tao/Object.h"
00048 #include "tao/Sequence_T.h"
00049 #include "tao/Objref_VarOut_T.h"
00050 #include "tao/Seq_Var_T.h"
00051 #include "tao/Seq_Out_T.h"
00052
00053 #include "tao/PolicyC.h"
00054
00055 #if defined (TAO_EXPORT_MACRO)
00056 #undef TAO_EXPORT_MACRO
00057 #endif
00058 #define TAO_EXPORT_MACRO TAO_Export
00059
00060 #if defined(_MSC_VER)
00061 #pragma warning(push)
00062 #pragma warning(disable:4250)
00063 #endif
00064
00065 #if defined (__BORLANDC__)
00066 #pragma option push -w-rvl -w-rch -w-ccc -w-inl
00067 #endif
00068
00069 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00070
00071
00072
00073
00074 namespace TAO
00075 {
00076 class Collocation_Proxy_Broker;
00077 template<typename T> class Narrow_Utils;
00078 }
00079
00080
00081
00082
00083 namespace CORBA
00084 {
00085
00086
00087
00088
00089 #if !defined (_CORBA_DOMAINMANAGER__VAR_OUT_CH_)
00090 #define _CORBA_DOMAINMANAGER__VAR_OUT_CH_
00091
00092 class DomainManager;
00093 typedef DomainManager *DomainManager_ptr;
00094
00095 typedef
00096 TAO_Objref_Var_T<
00097 DomainManager
00098 >
00099 DomainManager_var;
00100
00101 typedef
00102 TAO_Objref_Out_T<
00103 DomainManager
00104 >
00105 DomainManager_out;
00106
00107 #endif
00108
00109
00110
00111
00112 #if !defined (_CORBA_DOMAINMANAGER_CH_)
00113 #define _CORBA_DOMAINMANAGER_CH_
00114
00115 class TAO_Export DomainManager
00116 : public virtual CORBA::Object
00117 {
00118 public:
00119 friend class TAO::Narrow_Utils<DomainManager>;
00120 typedef DomainManager_ptr _ptr_type;
00121 typedef DomainManager_var _var_type;
00122
00123
00124 static DomainManager_ptr _duplicate (DomainManager_ptr obj);
00125
00126 static void _tao_release (DomainManager_ptr obj);
00127
00128 static DomainManager_ptr _narrow (
00129 CORBA::Object_ptr obj
00130 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00131 );
00132
00133 static DomainManager_ptr _unchecked_narrow (
00134 CORBA::Object_ptr obj
00135 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00136 );
00137
00138 static DomainManager_ptr _nil (void)
00139 {
00140 return static_cast<DomainManager_ptr> (0);
00141 }
00142
00143 static void _tao_any_destructor (void *);
00144
00145
00146
00147
00148 virtual ::CORBA::Policy_ptr get_domain_policy (
00149 ::CORBA::PolicyType policy_type
00150 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00151 )
00152 ACE_THROW_SPEC ((
00153 CORBA::SystemException
00154 ));
00155
00156
00157
00158
00159 virtual CORBA::Boolean _is_a (
00160 const char *type_id
00161 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00162 );
00163
00164 virtual const char* _interface_repository_id (void) const;
00165 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
00166 private:
00167 TAO::Collocation_Proxy_Broker *the_TAO_DomainManager_Proxy_Broker_;
00168
00169 protected:
00170
00171 DomainManager (void);
00172
00173
00174
00175 virtual void CORBA_DomainManager_setup_collocation (void);
00176
00177
00178 DomainManager (
00179 IOP::IOR *ior,
00180 TAO_ORB_Core *orb_core = 0
00181 );
00182
00183
00184 DomainManager (
00185 TAO_Stub *objref,
00186 CORBA::Boolean _tao_collocated = 0,
00187 TAO_Abstract_ServantBase *servant = 0,
00188 TAO_ORB_Core *orb_core = 0
00189 );
00190
00191 virtual ~DomainManager (void);
00192
00193 private:
00194
00195 DomainManager (const DomainManager &);
00196
00197 void operator= (const DomainManager &);
00198 };
00199
00200 #endif
00201
00202
00203
00204
00205 const CORBA::PolicyType SecConstruction = 11U;
00206
00207
00208
00209
00210 #if !defined (_CORBA_CONSTRUCTIONPOLICY__VAR_OUT_CH_)
00211 #define _CORBA_CONSTRUCTIONPOLICY__VAR_OUT_CH_
00212
00213 class ConstructionPolicy;
00214 typedef ConstructionPolicy *ConstructionPolicy_ptr;
00215
00216 typedef
00217 TAO_Objref_Var_T<
00218 ConstructionPolicy
00219 >
00220 ConstructionPolicy_var;
00221
00222 typedef
00223 TAO_Objref_Out_T<
00224 ConstructionPolicy
00225 >
00226 ConstructionPolicy_out;
00227
00228 #endif
00229
00230
00231
00232
00233 #if !defined (_CORBA_CONSTRUCTIONPOLICY_CH_)
00234 #define _CORBA_CONSTRUCTIONPOLICY_CH_
00235
00236 class TAO_Export ConstructionPolicy
00237 : public virtual ::CORBA::Policy
00238 {
00239 public:
00240 friend class TAO::Narrow_Utils<ConstructionPolicy>;
00241 typedef ConstructionPolicy_ptr _ptr_type;
00242 typedef ConstructionPolicy_var _var_type;
00243
00244
00245 static ConstructionPolicy_ptr _duplicate (ConstructionPolicy_ptr obj);
00246
00247 static void _tao_release (ConstructionPolicy_ptr obj);
00248
00249 static ConstructionPolicy_ptr _narrow (
00250 CORBA::Object_ptr obj
00251 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00252 );
00253
00254 static ConstructionPolicy_ptr _unchecked_narrow (
00255 CORBA::Object_ptr obj
00256 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00257 );
00258
00259 static ConstructionPolicy_ptr _nil (void)
00260 {
00261 return static_cast<ConstructionPolicy_ptr> (0);
00262 }
00263
00264 static void _tao_any_destructor (void *);
00265
00266
00267
00268
00269 virtual void make_domain_manager (
00270 ::CORBA::InterfaceDef_ptr object_type,
00271 ::CORBA::Boolean constr_policy
00272 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00273 )
00274 ACE_THROW_SPEC ((
00275 CORBA::SystemException
00276 ));
00277
00278
00279
00280
00281 virtual CORBA::Boolean _is_a (
00282 const char *type_id
00283 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00284 );
00285
00286 virtual const char* _interface_repository_id (void) const;
00287 virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
00288 private:
00289 TAO::Collocation_Proxy_Broker *the_TAO_ConstructionPolicy_Proxy_Broker_;
00290
00291 protected:
00292
00293 ConstructionPolicy (void);
00294
00295
00296
00297 virtual void CORBA_ConstructionPolicy_setup_collocation (void);
00298
00299
00300 ConstructionPolicy (
00301 IOP::IOR *ior,
00302 TAO_ORB_Core *orb_core = 0
00303 );
00304
00305
00306 ConstructionPolicy (
00307 TAO_Stub *objref,
00308 CORBA::Boolean _tao_collocated = 0,
00309 TAO_Abstract_ServantBase *servant = 0,
00310 TAO_ORB_Core *orb_core = 0
00311 );
00312
00313 virtual ~ConstructionPolicy (void);
00314
00315 private:
00316
00317 ConstructionPolicy (const ConstructionPolicy &);
00318
00319 void operator= (const ConstructionPolicy &);
00320 };
00321
00322 #endif
00323
00324
00325
00326
00327 #if !defined (_CORBA_DOMAINMANAGERLIST_CH_)
00328 #define _CORBA_DOMAINMANAGERLIST_CH_
00329
00330 class DomainManagerList;
00331
00332 typedef
00333 TAO_VarSeq_Var_T<
00334 DomainManagerList
00335 >
00336 DomainManagerList_var;
00337
00338 typedef
00339 TAO_Seq_Out_T<
00340 DomainManagerList
00341 >
00342 DomainManagerList_out;
00343
00344 class TAO_Export DomainManagerList
00345 : public
00346 TAO::unbounded_object_reference_sequence<
00347 DomainManager, DomainManager_var
00348 >
00349 {
00350 public:
00351 DomainManagerList (void);
00352 DomainManagerList (CORBA::ULong max);
00353 DomainManagerList (
00354 CORBA::ULong max,
00355 CORBA::ULong length,
00356 DomainManager_ptr* buffer,
00357 CORBA::Boolean release = false
00358 );
00359 DomainManagerList (const DomainManagerList &);
00360 ~DomainManagerList (void);
00361
00362 static void _tao_any_destructor (void *);
00363
00364 typedef DomainManagerList_var _var_type;
00365 };
00366
00367 #endif
00368
00369
00370
00371
00372 }
00373
00374
00375
00376
00377
00378
00379 extern TAO_Export
00380 TAO::Collocation_Proxy_Broker *
00381 (*CORBA__TAO_DomainManager_Proxy_Broker_Factory_function_pointer) (
00382 CORBA::Object_ptr obj
00383 );
00384
00385 extern TAO_Export
00386 TAO::Collocation_Proxy_Broker *
00387 (*CORBA__TAO_ConstructionPolicy_Proxy_Broker_Factory_function_pointer) (
00388 CORBA::Object_ptr obj
00389 );
00390
00391
00392
00393
00394
00395 namespace TAO
00396 {
00397
00398 #if !defined (_CORBA_DOMAINMANAGER__TRAITS_CH_)
00399 #define _CORBA_DOMAINMANAGER__TRAITS_CH_
00400
00401 template<>
00402 struct TAO_Export Objref_Traits< ::CORBA::DomainManager>
00403 {
00404 static ::CORBA::DomainManager_ptr duplicate (
00405 ::CORBA::DomainManager_ptr
00406 );
00407 static void release (
00408 ::CORBA::DomainManager_ptr
00409 );
00410 static ::CORBA::DomainManager_ptr nil (void);
00411 static CORBA::Boolean marshal (
00412 const ::CORBA::DomainManager_ptr p,
00413 TAO_OutputCDR & cdr
00414 );
00415 };
00416
00417 #endif
00418
00419 #if !defined (_CORBA_CONSTRUCTIONPOLICY__TRAITS_CH_)
00420 #define _CORBA_CONSTRUCTIONPOLICY__TRAITS_CH_
00421
00422 template<>
00423 struct TAO_Export Objref_Traits< ::CORBA::ConstructionPolicy>
00424 {
00425 static ::CORBA::ConstructionPolicy_ptr duplicate (
00426 ::CORBA::ConstructionPolicy_ptr
00427 );
00428 static void release (
00429 ::CORBA::ConstructionPolicy_ptr
00430 );
00431 static ::CORBA::ConstructionPolicy_ptr nil (void);
00432 static CORBA::Boolean marshal (
00433 const ::CORBA::ConstructionPolicy_ptr p,
00434 TAO_OutputCDR & cdr
00435 );
00436 };
00437
00438 #endif
00439 }
00440
00441
00442
00443
00444 TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::DomainManager_ptr );
00445 TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::DomainManager_ptr &);
00446
00447
00448
00449
00450 TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const CORBA::ConstructionPolicy_ptr );
00451 TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::ConstructionPolicy_ptr &);
00452
00453
00454
00455
00456 #if !defined _TAO_CDR_OP_CORBA_DomainManagerList_H_
00457 #define _TAO_CDR_OP_CORBA_DomainManagerList_H_
00458
00459 TAO_Export CORBA::Boolean operator<< (
00460 TAO_OutputCDR &,
00461 const CORBA::DomainManagerList &
00462 );
00463 TAO_Export CORBA::Boolean operator>> (
00464 TAO_InputCDR &,
00465 CORBA::DomainManagerList &
00466 );
00467
00468 #endif
00469
00470
00471
00472
00473 TAO_END_VERSIONED_NAMESPACE_DECL
00474
00475 #if defined (__ACE_INLINE__)
00476 #include "tao/DomainC.inl"
00477 #endif
00478
00479 #if defined(_MSC_VER)
00480 #pragma warning(pop)
00481 #endif
00482
00483 #if defined (__BORLANDC__)
00484 #pragma option pop
00485 #endif
00486
00487 #include "ace/post.h"
00488
00489 #endif
00490
00491