diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-04-12 14:00:35 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-04-12 14:00:35 +0000 |
commit | 2b1616b5119fc142f7dcec31e902ea73bc233673 (patch) | |
tree | 09f4c3293eef96d74b2f359142bf440982b037f6 /TAO/tao | |
parent | 72bdf438331e0326c11cd1abeae740691a2d5da7 (diff) | |
download | ATCD-2b1616b5119fc142f7dcec31e902ea73bc233673.tar.gz |
ChangeLogTag: Mon Apr 12 13:56:32 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao')
-rw-r--r-- | TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp | 38 | ||||
-rw-r--r-- | TAO/tao/BiDir_GIOP/BiDirPolicyC.h | 68 |
2 files changed, 70 insertions, 36 deletions
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp b/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp index 2bc6c88f379..b8415a519e1 100644 --- a/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp +++ b/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp @@ -26,7 +26,7 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be/be_codegen.cpp:302 +// be\be_codegen.cpp:323 #include "BiDirGIOP.h" @@ -41,15 +41,16 @@ #endif /* !defined INLINE */ // TAO_IDL - Generated from -// be/be_visitor_arg_traits.cpp:60 +// be\be_visitor_arg_traits.cpp:64 // Arg traits specializations. namespace TAO { } + // TAO_IDL - Generated from -// be/be_visitor_interface/interface_cs.cpp:60 +// be\be_visitor_interface/interface_cs.cpp:60 // Traits specializations for BiDirPolicy::BidirectionalPolicy. @@ -89,7 +90,7 @@ TAO::Objref_Traits<BiDirPolicy::BidirectionalPolicy>::tao_marshal ( } // Function pointer for collocation factory initialization. -TAO::Collocation_Proxy_Broker * +TAO::Collocation_Proxy_Broker * (*BiDirPolicy__TAO_BidirectionalPolicy_Proxy_Broker_Factory_function_pointer) ( CORBA::Object_ptr obj ) = 0; @@ -110,10 +111,27 @@ BiDirPolicy::BidirectionalPolicy::_narrow ( { return BidirectionalPolicy::_nil (); } - + BidirectionalPolicy_ptr proxy = dynamic_cast<BidirectionalPolicy_ptr> (_tao_objref); + + return BidirectionalPolicy::_duplicate (proxy); +} +BiDirPolicy::BidirectionalPolicy_ptr +BiDirPolicy::BidirectionalPolicy::_unchecked_narrow ( + CORBA::Object_ptr _tao_objref + ACE_ENV_ARG_DECL_NOT_USED + ) +{ + if (CORBA::is_nil (_tao_objref)) + { + return BidirectionalPolicy::_nil (); + } + + BidirectionalPolicy_ptr proxy = + dynamic_cast<BidirectionalPolicy_ptr> (_tao_objref); + return BidirectionalPolicy::_duplicate (proxy); } @@ -124,7 +142,7 @@ BiDirPolicy::BidirectionalPolicy::_duplicate (BidirectionalPolicy_ptr obj) { obj->_add_ref (); } - + return obj; } @@ -141,7 +159,7 @@ BiDirPolicy::BidirectionalPolicy::_is_a ( ) || !ACE_OS::strcmp ( (char *)value, - "IDL:BiDirPolicy/BidirectionalPolicy:1.0" + "IDL:omg.org/BiDirPolicy/BidirectionalPolicy:1.0" ) || !ACE_OS::strcmp ( (char *)value, @@ -163,7 +181,7 @@ BiDirPolicy::BidirectionalPolicy::_is_a ( const char* BiDirPolicy::BidirectionalPolicy::_interface_repository_id (void) const { - return "IDL:BiDirPolicy/BidirectionalPolicy:1.0"; + return "IDL:omg.org/BiDirPolicy/BidirectionalPolicy:1.0"; } CORBA::Boolean @@ -173,7 +191,7 @@ BiDirPolicy::BidirectionalPolicy::marshal (TAO_OutputCDR &) } // TAO_IDL - Generated from -// be/be_visitor_root/root.cpp:1702 +// be\be_visitor_root/root.cpp:1633 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) @@ -186,7 +204,7 @@ BiDirPolicy::BidirectionalPolicy::marshal (TAO_OutputCDR &) TAO_Objref_Var_T< BiDirPolicy::BidirectionalPolicy >; - + template class TAO_Objref_Out_T< BiDirPolicy::BidirectionalPolicy diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicyC.h b/TAO/tao/BiDir_GIOP/BiDirPolicyC.h index e2d72039a70..a45650ab5ac 100644 --- a/TAO/tao/BiDir_GIOP/BiDirPolicyC.h +++ b/TAO/tao/BiDir_GIOP/BiDirPolicyC.h @@ -26,23 +26,24 @@ // http://www.cs.wustl.edu/~schmidt/TAO.html // TAO_IDL - Generated from -// be/be_codegen.cpp:150 +// be\be_codegen.cpp:171 #ifndef _TAO_IDL_ORIG_BIDIRPOLICYC_H_ #define _TAO_IDL_ORIG_BIDIRPOLICYC_H_ #include /**/ "ace/pre.h" -#include "bidirgiop_export.h" - #ifndef TAO_BIDIRGIOP_SAFE_INCLUDE #error "You should not include BiDirPolicyC.h directly, use BiDirGIOP.h" #endif /* !TAO_BIDIRGIOP_SAFE_INCLUDE */ +#include "tao/ORB.h" + #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "tao/BiDIR_GIOP/bidirgiop_export.h" #include "tao/CDR.h" #include "tao/Environment.h" #include "tao/Object.h" @@ -74,7 +75,7 @@ #endif /* __BORLANDC__ */ // TAO_IDL - Generated from -// be/be_visitor_root/root_ch.cpp:63 +// be\be_visitor_root/root_ch.cpp:63 namespace TAO { @@ -85,34 +86,34 @@ namespace TAO } // TAO_IDL - Generated from -// be/be_visitor_module/module_ch.cpp:48 +// be\be_visitor_module/module_ch.cpp:48 namespace BiDirPolicy { // TAO_IDL - Generated from - // be/be_visitor_typedef/typedef_ch.cpp:342 + // be\be_visitor_typedef/typedef_ch.cpp:342 typedef CORBA::UShort BidirectionalPolicyValue; typedef CORBA::UShort_out BidirectionalPolicyValue_out; // TAO_IDL - Generated from - // be/be_visitor_constant/constant_ch.cpp:52 + // be\be_visitor_constant/constant_ch.cpp:52 const BiDirPolicy::BidirectionalPolicyValue NORMAL = 0U; // TAO_IDL - Generated from - // be/be_visitor_constant/constant_ch.cpp:52 + // be\be_visitor_constant/constant_ch.cpp:52 const BiDirPolicy::BidirectionalPolicyValue BOTH = 1U; // TAO_IDL - Generated from - // be/be_visitor_constant/constant_ch.cpp:52 + // be\be_visitor_constant/constant_ch.cpp:52 const CORBA::PolicyType BIDIRECTIONAL_POLICY_TYPE = 37U; // TAO_IDL - Generated from - // be/be_interface.cpp:610 + // be\be_interface.cpp:611 #if !defined (_BIDIRPOLICY_BIDIRECTIONALPOLICY__VAR_OUT_CH_) #define _BIDIRPOLICY_BIDIRECTIONALPOLICY__VAR_OUT_CH_ @@ -135,7 +136,7 @@ namespace BiDirPolicy #endif /* end #if !defined */ // TAO_IDL - Generated from - // be/be_visitor_interface/interface_ch.cpp:54 + // be\be_visitor_interface/interface_ch.cpp:54 #if !defined (_BIDIRPOLICY_BIDIRECTIONALPOLICY_CH_) #define _BIDIRPOLICY_BIDIRECTIONALPOLICY_CH_ @@ -155,6 +156,11 @@ namespace BiDirPolicy ACE_ENV_ARG_DECL_WITH_DEFAULTS ); + static BidirectionalPolicy_ptr _unchecked_narrow ( + CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + static BidirectionalPolicy_ptr _nil (void) { return (BidirectionalPolicy_ptr)0; @@ -163,7 +169,7 @@ namespace BiDirPolicy // TAO_IDL - Generated from - // be/be_visitor_operation/operation_ch.cpp:46 + // be\be_visitor_operation/operation_ch.cpp:46 virtual BiDirPolicy::BidirectionalPolicyValue value ( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS @@ -173,7 +179,27 @@ namespace BiDirPolicy )) = 0; // TAO_IDL - Generated from - // be/be_visitor_interface/interface_ch.cpp:192 + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual ::CORBA::Policy_ptr copy ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual void destroy ( + ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + CORBA::SystemException + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_interface/interface_ch.cpp:208 virtual CORBA::Boolean _is_a ( const char *type_id @@ -199,12 +225,12 @@ namespace BiDirPolicy #endif /* end #if !defined */ // TAO_IDL - Generated from -// be/be_visitor_module/module_ch.cpp:66 +// be\be_visitor_module/module_ch.cpp:66 } // module BiDirPolicy // TAO_IDL - Generated from -// be/be_visitor_traits.cpp:48 +// be\be_visitor_traits.cpp:59 // Traits specializations. namespace TAO @@ -233,17 +259,7 @@ namespace TAO } // TAO_IDL - Generated from -// be/be_visitor_root/cdr_op.cpp:48 - -#ifndef __ACE_INLINE__ - -// TAO_IDL - Generated from -// be/be_visitor_root/cdr_op.cpp:64 - -#endif /* __ACE_INLINE__ */ - -// TAO_IDL - Generated from -// be/be_codegen.cpp:911 +// be\be_codegen.cpp:978 #if defined (__ACE_INLINE__) #include "BiDirPolicyC.i" |