00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaVideoWriter_skel_h__
00016 #define ___HxCorbaVideoWriter_skel_h__
00017
00018 #include <HxCorbaVideoWriter.h>
00019
00020 #include <HxCorbaImageRep_skel.h>
00021
00022 #ifndef OB_INTEGER_VERSION
00023 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00024 #endif
00025
00026 #ifndef OB_NO_VERSION_CHECK
00027 # if (OB_INTEGER_VERSION != 4010000L)
00028 # error ORBacus version mismatch!
00029 # endif
00030 #endif
00031
00032
00033
00034
00035 namespace POA_HxCorba
00036 {
00037
00038
00039
00040
00041 class VideoWriter : virtual public PortableServer::ServantBase
00042 {
00043 VideoWriter(const VideoWriter&);
00044 void operator=(const VideoWriter&);
00045
00046 protected:
00047
00048
00049
00050
00051 void _OB_op_putFrame(OB::Upcall_ptr);
00052
00053
00054
00055
00056 void _OB_op_putImage(OB::Upcall_ptr);
00057
00058
00059
00060
00061 void _OB_op_closeVideo(OB::Upcall_ptr);
00062
00063 public:
00064
00065 VideoWriter() { }
00066
00067 virtual CORBA::Boolean _is_a(const char*)
00068 throw(CORBA::SystemException);
00069
00070 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00071 PortableServer::POA_ptr);
00072
00073 HxCorba::VideoWriter_ptr _this();
00074
00075 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00076 const PortableServer::ObjectId&);
00077 virtual void _OB_dispatch(OB::Upcall_ptr);
00078
00079
00080
00081
00082 virtual void putFrame(CORBA::Octet r,
00083 CORBA::Octet g,
00084 CORBA::Octet b)
00085 throw(CORBA::SystemException) = 0;
00086
00087
00088
00089
00090 virtual void putImage(HxCorba::ImageRep_ptr img,
00091 const char* mode)
00092 throw(CORBA::SystemException) = 0;
00093
00094
00095
00096
00097 virtual void closeVideo()
00098 throw(CORBA::SystemException) = 0;
00099 };
00100
00101
00102
00103
00104 class VideoWriterFactory : virtual public PortableServer::ServantBase
00105 {
00106 VideoWriterFactory(const VideoWriterFactory&);
00107 void operator=(const VideoWriterFactory&);
00108
00109 protected:
00110
00111
00112
00113
00114 void _OB_op_openVideo(OB::Upcall_ptr);
00115
00116 public:
00117
00118 VideoWriterFactory() { }
00119
00120 virtual CORBA::Boolean _is_a(const char*)
00121 throw(CORBA::SystemException);
00122
00123 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00124 PortableServer::POA_ptr);
00125
00126 HxCorba::VideoWriterFactory_ptr _this();
00127
00128 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00129 const PortableServer::ObjectId&);
00130 virtual void _OB_dispatch(OB::Upcall_ptr);
00131
00132
00133
00134
00135 virtual HxCorba::VideoWriter_ptr openVideo(const char* videoName,
00136 CORBA::Long w,
00137 CORBA::Long h)
00138 throw(CORBA::SystemException) = 0;
00139 };
00140
00141 }
00142
00143
00144
00145
00146 namespace OBDirectStubImpl_HxCorba
00147 {
00148
00149
00150
00151
00152 class VideoWriter : virtual public OBStubImpl_HxCorba::VideoWriter,
00153 virtual public OB::DirectStubImpl
00154 {
00155 VideoWriter(const VideoWriter&);
00156 void operator=(const VideoWriter&);
00157
00158 protected:
00159
00160 #ifdef HAVE_VCPLUSPLUS_BUGS
00161
00162 VideoWriter() { }
00163
00164 #endif
00165
00166 VideoWriter(PortableServer::POA_ptr,
00167 const PortableServer::ObjectId&,
00168 PortableServer::ServantBase*);
00169
00170 friend class POA_HxCorba::VideoWriter;
00171
00172 public:
00173
00174
00175
00176
00177 virtual void putFrame(CORBA::Octet r,
00178 CORBA::Octet g,
00179 CORBA::Octet b);
00180
00181
00182
00183
00184 virtual void putImage(HxCorba::ImageRep_ptr img,
00185 const char* mode);
00186
00187
00188
00189
00190 virtual void closeVideo();
00191 };
00192
00193
00194
00195
00196 class VideoWriterFactory : virtual public OBStubImpl_HxCorba::VideoWriterFactory,
00197 virtual public OB::DirectStubImpl
00198 {
00199 VideoWriterFactory(const VideoWriterFactory&);
00200 void operator=(const VideoWriterFactory&);
00201
00202 protected:
00203
00204 #ifdef HAVE_VCPLUSPLUS_BUGS
00205
00206 VideoWriterFactory() { }
00207
00208 #endif
00209
00210 VideoWriterFactory(PortableServer::POA_ptr,
00211 const PortableServer::ObjectId&,
00212 PortableServer::ServantBase*);
00213
00214 friend class POA_HxCorba::VideoWriterFactory;
00215
00216 public:
00217
00218
00219
00220
00221 virtual HxCorba::VideoWriter_ptr openVideo(const char* videoName,
00222 CORBA::Long w,
00223 CORBA::Long h);
00224 };
00225
00226 }
00227
00228 #endif