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