00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TAO_AV_ENDPOINT_STRATEGY_H
00015 #define TAO_AV_ENDPOINT_STRATEGY_H
00016 #include "ace/pre.h"
00017
00018 #include "orbsvcs/AV/AVStreams_i.h"
00019 #include "ace/os_include/os_netdb.h"
00020
00021
00022
00023 #if defined (_MSC_VER)
00024 # pragma warning(push)
00025 # pragma warning (disable : 4250)
00026 #endif
00027
00028 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00029 class ACE_Process_Options;
00030 ACE_END_VERSIONED_NAMESPACE_DECL
00031
00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00033
00034
00035
00036
00037
00038
00039
00040 class TAO_AV_Export TAO_AV_Endpoint_Strategy
00041 {
00042
00043 public:
00044
00045 TAO_AV_Endpoint_Strategy (void);
00046
00047
00048 virtual ~TAO_AV_Endpoint_Strategy (void);
00049
00050
00051 virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint,
00052 AVStreams::VDev_ptr &vdev);
00053
00054
00055 virtual int create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint,
00056 AVStreams::VDev_ptr &vdev);
00057
00058 protected:
00059
00060 AVStreams::StreamEndPoint_A_var stream_endpoint_a_;
00061
00062
00063 AVStreams::StreamEndPoint_B_var stream_endpoint_b_;
00064
00065
00066 AVStreams::VDev_var vdev_;
00067
00068 };
00069
00070
00071
00072
00073
00074
00075
00076 class TAO_AV_Export TAO_AV_Endpoint_Process_Strategy
00077 : public TAO_AV_Endpoint_Strategy
00078 {
00079
00080 public:
00081
00082
00083 TAO_AV_Endpoint_Process_Strategy (ACE_Process_Options *process_options);
00084
00085
00086 virtual ~TAO_AV_Endpoint_Process_Strategy (void);
00087
00088
00089
00090 virtual int activate (void);
00091
00092 protected:
00093
00094 virtual int bind_to_naming_service (void);
00095
00096
00097
00098
00099
00100
00101 virtual int get_stream_endpoint (void) = 0;
00102
00103
00104
00105 virtual int get_vdev (void);
00106
00107
00108 CosNaming::NamingContext_var naming_context_;
00109
00110
00111 ACE_Process_Options *process_options_;
00112
00113
00114 char host_[MAXHOSTNAMELEN];
00115
00116
00117 pid_t pid_;
00118 };
00119
00120
00121
00122
00123
00124
00125
00126
00127 class TAO_AV_Export TAO_AV_Endpoint_Process_Strategy_A
00128 : public TAO_AV_Endpoint_Process_Strategy
00129 {
00130
00131 public:
00132
00133 TAO_AV_Endpoint_Process_Strategy_A (ACE_Process_Options *process_options);
00134
00135
00136 virtual ~TAO_AV_Endpoint_Process_Strategy_A (void);
00137
00138 protected:
00139
00140 virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint,
00141 AVStreams::VDev_ptr &vdev);
00142
00143
00144 virtual int get_stream_endpoint (void);
00145
00146 };
00147
00148
00149
00150
00151
00152
00153
00154 class TAO_AV_Export TAO_AV_Endpoint_Process_Strategy_B
00155 : public TAO_AV_Endpoint_Process_Strategy
00156 {
00157
00158 public:
00159
00160 TAO_AV_Endpoint_Process_Strategy_B (ACE_Process_Options *process_options);
00161
00162
00163 virtual ~TAO_AV_Endpoint_Process_Strategy_B (void);
00164
00165 protected:
00166
00167 virtual int create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint,
00168 AVStreams::VDev_ptr &vdev);
00169
00170
00171
00172 virtual int get_stream_endpoint (void);
00173
00174 };
00175
00176 TAO_END_VERSIONED_NAMESPACE_DECL
00177
00178
00179 #include "orbsvcs/AV/Endpoint_Strategy_T.h"
00180
00181 #if defined(_MSC_VER)
00182 #pragma warning(pop)
00183 #endif
00184
00185 #include "ace/post.h"
00186 #endif