00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaRefCountBase_skel_h__
00016 #define ___HxCorbaRefCountBase_skel_h__
00017
00018 #include <HxCorbaRefCountBase.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 != 4010000L)
00026 # error ORBacus version mismatch!
00027 # endif
00028 #endif
00029
00030
00031
00032
00033 namespace POA_HxCorba
00034 {
00035
00036
00037
00038
00039 class RefCountBase : virtual public PortableServer::ServantBase
00040 {
00041 RefCountBase(const RefCountBase&);
00042 void operator=(const RefCountBase&);
00043
00044 protected:
00045
00046
00047
00048
00049 void _OB_op_addRef(OB::Upcall_ptr);
00050
00051
00052
00053
00054 void _OB_op_removeRef(OB::Upcall_ptr);
00055
00056 public:
00057
00058 RefCountBase() { }
00059
00060 virtual CORBA::Boolean _is_a(const char*)
00061 throw(CORBA::SystemException);
00062
00063 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00064 PortableServer::POA_ptr);
00065
00066 HxCorba::RefCountBase_ptr _this();
00067
00068 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00069 const PortableServer::ObjectId&);
00070 virtual void _OB_dispatch(OB::Upcall_ptr);
00071
00072
00073
00074
00075 virtual void addRef()
00076 throw(CORBA::SystemException) = 0;
00077
00078
00079
00080
00081 virtual void removeRef()
00082 throw(CORBA::SystemException) = 0;
00083 };
00084
00085 }
00086
00087
00088
00089
00090 namespace OBDirectStubImpl_HxCorba
00091 {
00092
00093
00094
00095
00096 class RefCountBase : virtual public OBStubImpl_HxCorba::RefCountBase,
00097 virtual public OB::DirectStubImpl
00098 {
00099 RefCountBase(const RefCountBase&);
00100 void operator=(const RefCountBase&);
00101
00102 protected:
00103
00104 #ifdef HAVE_VCPLUSPLUS_BUGS
00105
00106 RefCountBase() { }
00107
00108 #endif
00109
00110 RefCountBase(PortableServer::POA_ptr,
00111 const PortableServer::ObjectId&,
00112 PortableServer::ServantBase*);
00113
00114 friend class POA_HxCorba::RefCountBase;
00115
00116 public:
00117
00118
00119
00120
00121 virtual void addRef();
00122
00123
00124
00125
00126 virtual void removeRef();
00127 };
00128
00129 }
00130
00131 #endif