00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_OPTABLE_H
00014 #define TAO_OPTABLE_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/PortableServer/portableserver_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/Object.h"
00025 #include "tao/Collocation_Strategy.h"
00026
00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00028
00029 class TAO_ServerRequest;
00030 class TAO_Abstract_ServantBase;
00031
00032 namespace CORBA
00033 {
00034 class Environment;
00035 }
00036
00037 typedef void (*TAO_Skeleton)(
00038 TAO_ServerRequest &,
00039 void *,
00040 void *
00041 #if !defined (TAO_HAS_EXCEPTIONS) || defined (ACE_ENV_BKWD_COMPAT)
00042 , CORBA::Environment &
00043 #endif
00044 );
00045
00046 typedef void (*TAO_Collocated_Skeleton)(
00047 TAO_Abstract_ServantBase *,
00048 TAO::Argument **,
00049 int
00050 #if !defined (TAO_HAS_EXCEPTIONS) || defined (ACE_ENV_BKWD_COMPAT)
00051 , CORBA::Environment &
00052 #endif
00053 );
00054
00055
00056
00057
00058
00059
00060
00061
00062 struct TAO_operation_db_entry
00063 {
00064
00065 char const * opname;
00066
00067
00068 TAO_Skeleton skel_ptr;
00069
00070
00071 TAO_Collocated_Skeleton direct_skel_ptr;
00072 };
00073
00074
00075
00076 namespace TAO
00077 {
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 struct Operation_Skeletons
00088 {
00089 Operation_Skeletons (void);
00090
00091
00092 TAO_Skeleton skel_ptr;
00093
00094
00095 TAO_Skeleton thruPOA_skel_ptr;
00096 TAO_Collocated_Skeleton direct_skel_ptr;
00097 };
00098 }
00099
00100
00101
00102
00103
00104
00105
00106 class TAO_PortableServer_Export TAO_Operation_Table
00107 {
00108 public:
00109
00110
00111
00112
00113
00114 virtual int find (const char *opname,
00115 TAO_Skeleton &skelfunc,
00116 const unsigned int length = 0) = 0;
00117
00118
00119
00120
00121
00122
00123 virtual int find (const char *opname,
00124 TAO_Collocated_Skeleton &skelfunc,
00125 TAO::Collocation_Strategy s,
00126 const unsigned int length = 0) = 0;
00127
00128
00129
00130 virtual int bind (const char *opname,
00131 const TAO::Operation_Skeletons skel_ptr) = 0;
00132
00133 virtual ~TAO_Operation_Table (void);
00134 };
00135
00136 TAO_END_VERSIONED_NAMESPACE_DECL
00137
00138 #include "ace/post.h"
00139 #endif