00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaWebImageFactory_h__
00016 #define ___HxCorbaWebImageFactory_h__
00017
00018 #include <HxCorbaImageRep.h>
00019
00020 #ifndef OB_INTEGER_VERSION
00021 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00022 #endif
00023
00024 #ifndef OB_NO_VERSION_CHECK
00025 # if (OB_INTEGER_VERSION != 4000500L)
00026 # error ORBacus version mismatch!
00027 # endif
00028 #endif
00029
00030 namespace HxCorba
00031 {
00032
00033 class WebImageFactory;
00034 typedef WebImageFactory* WebImageFactory_ptr;
00035 typedef WebImageFactory* WebImageFactoryRef;
00036
00037 extern OB::TypeCodeConst _tc_WebImageFactory;
00038
00039 }
00040
00041 void OBDuplicate(HxCorba::WebImageFactory_ptr);
00042 void OBRelease(HxCorba::WebImageFactory_ptr);
00043
00044 void OBMarshal(HxCorba::WebImageFactory_ptr, OB::OutputStreamImpl*);
00045 void OBUnmarshal(HxCorba::WebImageFactory_ptr&, OB::InputStreamImpl*);
00046
00047 namespace HxCorba
00048 {
00049
00050 typedef OB::ObjVar< WebImageFactory > WebImageFactory_var;
00051 typedef OB::ObjOut< WebImageFactory > WebImageFactory_out;
00052
00053 }
00054
00055 namespace OBStubImpl_HxCorba
00056 {
00057
00058 class WebImageFactory;
00059 typedef WebImageFactory* WebImageFactory_ptr;
00060
00061 }
00062
00063 void OBDuplicate(OBStubImpl_HxCorba::WebImageFactory_ptr);
00064 void OBRelease(OBStubImpl_HxCorba::WebImageFactory_ptr);
00065
00066 namespace OBStubImpl_HxCorba
00067 {
00068
00069 typedef OB::ObjVar< WebImageFactory > WebImageFactory_var;
00070
00071 }
00072
00073
00074
00075
00076 namespace HxCorba
00077 {
00078
00079
00080
00081
00082 class WebImageFactory : virtual public CORBA::Object
00083 {
00084 WebImageFactory(const WebImageFactory&);
00085 void operator=(const WebImageFactory&);
00086
00087 static const char* ids_[];
00088
00089 protected:
00090
00091 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00092
00093 public:
00094
00095 WebImageFactory() { }
00096 virtual ~WebImageFactory() { }
00097
00098 typedef WebImageFactory_ptr _ptr_type;
00099 typedef WebImageFactory_var _var_type;
00100
00101 static inline WebImageFactory_ptr
00102 _duplicate(WebImageFactory_ptr p)
00103 {
00104 if(p)
00105 p -> _OB_incRef();
00106 return p;
00107 }
00108
00109 static inline WebImageFactory_ptr
00110 _nil()
00111 {
00112 return 0;
00113 }
00114
00115 static WebImageFactory_ptr _narrow(CORBA::Object_ptr);
00116 static WebImageFactory_ptr _narrow(CORBA::AbstractBase_ptr);
00117
00118 virtual const char** _OB_ids() const;
00119 static const char** _OB_staticIds();
00120
00121
00122
00123
00124 ImageData_ptr makeImageFromURL(const char* url);
00125 };
00126
00127 }
00128
00129
00130
00131
00132 namespace OBStubImpl_HxCorba
00133 {
00134
00135
00136
00137
00138 class WebImageFactory : virtual public OB::StubImplBase
00139 {
00140 WebImageFactory(const WebImageFactory&);
00141 void operator=(const WebImageFactory&);
00142
00143 protected:
00144
00145 WebImageFactory() { }
00146
00147 public:
00148
00149 static inline WebImageFactory_ptr
00150 _duplicate(WebImageFactory_ptr p)
00151 {
00152 if(p)
00153 p -> _OB_incRef();
00154 return p;
00155 }
00156
00157 static inline WebImageFactory_ptr
00158 _nil()
00159 {
00160 return 0;
00161 }
00162
00163
00164
00165
00166 virtual HxCorba::ImageData_ptr makeImageFromURL(const char* url) = 0;
00167 };
00168
00169 }
00170
00171
00172
00173
00174 namespace OBMarshalStubImpl_HxCorba
00175 {
00176
00177
00178
00179
00180 class WebImageFactory : virtual public OBStubImpl_HxCorba::WebImageFactory,
00181 virtual public OB::MarshalStubImpl
00182 {
00183 WebImageFactory(const WebImageFactory&);
00184 void operator=(const WebImageFactory&);
00185
00186 protected:
00187
00188 WebImageFactory() { }
00189 friend class HxCorba::WebImageFactory;
00190
00191 public:
00192
00193
00194
00195
00196 virtual HxCorba::ImageData_ptr makeImageFromURL(const char* url);
00197 };
00198
00199 }
00200
00201
00202
00203
00204 namespace OBV_HxCorba
00205 {
00206
00207 }
00208
00209
00210
00211
00212 namespace CORBA
00213 {
00214
00215 inline void
00216 release(HxCorba::WebImageFactory_ptr p)
00217 {
00218 if(p)
00219 p -> _OB_decRef();
00220 }
00221
00222 inline Boolean
00223 is_nil(HxCorba::WebImageFactory_ptr p)
00224 {
00225 return p == 0;
00226 }
00227
00228 inline void
00229 release(OBStubImpl_HxCorba::WebImageFactory_ptr p)
00230 {
00231 if(p)
00232 p -> _OB_decRef();
00233 }
00234
00235 inline Boolean
00236 is_nil(OBStubImpl_HxCorba::WebImageFactory_ptr p)
00237 {
00238 return p == 0;
00239 }
00240
00241 }
00242
00243 void operator<<=(CORBA::Any&, HxCorba::WebImageFactory_ptr*);
00244 void operator<<=(CORBA::Any&, HxCorba::WebImageFactory_ptr);
00245 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::WebImageFactory_ptr&);
00246
00247 inline void
00248 operator<<=(CORBA::Any_var& any, HxCorba::WebImageFactory_ptr* val)
00249 {
00250 any.inout() <<= val;
00251 }
00252
00253 inline void
00254 operator<<=(CORBA::Any_var& any, HxCorba::WebImageFactory_ptr val)
00255 {
00256 any.inout() <<= val;
00257 }
00258
00259 inline CORBA::Boolean
00260 operator>>=(const CORBA::Any_var& any, HxCorba::WebImageFactory_ptr& val)
00261 {
00262 return any.in() >>= val;
00263 }
00264
00265 #endif