00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Direct_Collocation_Upcall_Wrapper.h 00006 * 00007 * Direct_Collocation_Upcall_Wrapper.h,v 1.6 2006/06/19 14:51:14 parsons Exp 00008 * 00009 * @author Johnny Willemsen 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_DIRECT_COLLOCATION_UPCALL_WRAPPER_H 00014 #define TAO_DIRECT_COLLOCATION_UPCALL_WRAPPER_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/PortableServer/portableserver_export.h" 00019 00020 #ifndef ACE_LACKS_PRAGMA_ONCE 00021 # pragma once 00022 #endif /* !ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/Basic_Types.h" 00025 #include "tao/orbconf.h" 00026 #include "tao/Collocation_Strategy.h" 00027 #include "tao/Exception.h" 00028 #include "tao/CORBA_methods.h" 00029 #include "tao/Pseudo_VarOut_T.h" 00030 #include "ace/CORBA_macros.h" 00031 00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00033 00034 namespace CORBA 00035 { 00036 class Environment; 00037 00038 class Object; 00039 typedef Object *Object_ptr; 00040 typedef TAO_Pseudo_Var_T<Object> Object_var; 00041 typedef TAO_Pseudo_Out_T<Object> Object_out; 00042 } 00043 00044 namespace TAO 00045 { 00046 class Argument; 00047 00048 /** 00049 * @class Direct_Collocation_Upcall_Wrapper 00050 * 00051 * @brief Wraps the activities direct collocation upcall 00052 * 00053 */ 00054 class TAO_PortableServer_Export Direct_Collocation_Upcall_Wrapper 00055 { 00056 public: 00057 00058 /// Perform the upcall 00059 void upcall ( 00060 CORBA::Object_ptr obj, 00061 CORBA::Object_out forward_obj, 00062 TAO::Argument ** args, 00063 int num_args, 00064 const char * op, 00065 size_t op_len, 00066 TAO::Collocation_Strategy strategy 00067 ACE_ENV_ARG_DECL 00068 ) 00069 ACE_THROW_SPEC ((CORBA::Exception)); 00070 }; 00071 00072 } // End namespace TAO 00073 00074 TAO_END_VERSIONED_NAMESPACE_DECL 00075 00076 #include /**/ "ace/post.h" 00077 00078 #endif /* TAO_DIRECT_COLLOCATION_UPCALL_WRAPPER_H */