Line |
Branch |
Exec |
Source |
1 |
|
|
// This file is generated by omniidl (C++ backend)- omniORB_4_3. Do not edit. |
2 |
|
|
#ifndef __echo_hh__ |
3 |
|
|
#define __echo_hh__ |
4 |
|
|
|
5 |
|
|
#ifndef __CORBA_H_EXTERNAL_GUARD__ |
6 |
|
|
#include <omniORB4/CORBA.h> |
7 |
|
|
#endif |
8 |
|
|
|
9 |
|
|
#ifndef USE_stub_in_nt_dll |
10 |
|
|
# define USE_stub_in_nt_dll_NOT_DEFINED_echo |
11 |
|
|
#endif |
12 |
|
|
#ifndef USE_core_stub_in_nt_dll |
13 |
|
|
# define USE_core_stub_in_nt_dll_NOT_DEFINED_echo |
14 |
|
|
#endif |
15 |
|
|
#ifndef USE_dyn_stub_in_nt_dll |
16 |
|
|
# define USE_dyn_stub_in_nt_dll_NOT_DEFINED_echo |
17 |
|
|
#endif |
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
#ifdef USE_stub_in_nt_dll |
25 |
|
|
# ifndef USE_core_stub_in_nt_dll |
26 |
|
|
# define USE_core_stub_in_nt_dll |
27 |
|
|
# endif |
28 |
|
|
# ifndef USE_dyn_stub_in_nt_dll |
29 |
|
|
# define USE_dyn_stub_in_nt_dll |
30 |
|
|
# endif |
31 |
|
|
#endif |
32 |
|
|
|
33 |
|
|
#ifdef _core_attr |
34 |
|
|
# error "A local CPP macro _core_attr has already been defined." |
35 |
|
|
#else |
36 |
|
|
# ifdef USE_core_stub_in_nt_dll |
37 |
|
|
# define _core_attr _OMNIORB_NTDLL_IMPORT |
38 |
|
|
# else |
39 |
|
|
# define _core_attr |
40 |
|
|
# endif |
41 |
|
|
#endif |
42 |
|
|
|
43 |
|
|
#ifdef _dyn_attr |
44 |
|
|
# error "A local CPP macro _dyn_attr has already been defined." |
45 |
|
|
#else |
46 |
|
|
# ifdef USE_dyn_stub_in_nt_dll |
47 |
|
|
# define _dyn_attr _OMNIORB_NTDLL_IMPORT |
48 |
|
|
# else |
49 |
|
|
# define _dyn_attr |
50 |
|
|
# endif |
51 |
|
|
#endif |
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
#ifndef __Echo__ |
56 |
|
|
#define __Echo__ |
57 |
|
|
class Echo; |
58 |
|
|
class _objref_Echo; |
59 |
|
|
class _impl_Echo; |
60 |
|
|
|
61 |
|
|
typedef _objref_Echo* Echo_ptr; |
62 |
|
|
typedef Echo_ptr EchoRef; |
63 |
|
|
|
64 |
|
|
class Echo_Helper { |
65 |
|
|
public: |
66 |
|
|
typedef Echo_ptr _ptr_type; |
67 |
|
|
|
68 |
|
|
static _ptr_type _nil(); |
69 |
|
|
static _CORBA_Boolean is_nil(_ptr_type); |
70 |
|
|
static void release(_ptr_type); |
71 |
|
|
static void duplicate(_ptr_type); |
72 |
|
|
static void marshalObjRef(_ptr_type, cdrStream&); |
73 |
|
|
static _ptr_type unmarshalObjRef(cdrStream&); |
74 |
|
|
}; |
75 |
|
|
|
76 |
|
|
typedef _CORBA_ObjRef_Var<_objref_Echo, Echo_Helper> Echo_var; |
77 |
|
|
typedef _CORBA_ObjRef_OUT_arg<_objref_Echo,Echo_Helper > Echo_out; |
78 |
|
|
|
79 |
|
|
#endif |
80 |
|
|
|
81 |
|
|
// interface Echo |
82 |
|
|
class Echo { |
83 |
|
|
public: |
84 |
|
|
// Declarations for this interface type. |
85 |
|
|
typedef Echo_ptr _ptr_type; |
86 |
|
|
typedef Echo_var _var_type; |
87 |
|
|
|
88 |
|
|
static _ptr_type _duplicate(_ptr_type); |
89 |
|
|
static _ptr_type _narrow(::CORBA::Object_ptr); |
90 |
|
|
static _ptr_type _unchecked_narrow(::CORBA::Object_ptr); |
91 |
|
|
|
92 |
|
|
static _ptr_type _nil(); |
93 |
|
|
|
94 |
|
|
static inline void _marshalObjRef(_ptr_type, cdrStream&); |
95 |
|
|
|
96 |
|
✗ |
static inline _ptr_type _unmarshalObjRef(cdrStream& s) { |
97 |
|
✗ |
omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s); |
98 |
|
✗ |
if (o) |
99 |
|
✗ |
return (_ptr_type) o->_ptrToObjRef(_PD_repoId); |
100 |
|
|
else |
101 |
|
✗ |
return _nil(); |
102 |
|
|
} |
103 |
|
|
|
104 |
|
|
static inline _ptr_type _fromObjRef(omniObjRef* o) { |
105 |
|
|
if (o) |
106 |
|
|
return (_ptr_type) o->_ptrToObjRef(_PD_repoId); |
107 |
|
|
else |
108 |
|
|
return _nil(); |
109 |
|
|
} |
110 |
|
|
|
111 |
|
|
static _core_attr const char* _PD_repoId; |
112 |
|
|
|
113 |
|
|
// Other IDL defined within this scope. |
114 |
|
|
|
115 |
|
|
}; |
116 |
|
|
|
117 |
|
|
class _objref_Echo : |
118 |
|
|
public virtual ::CORBA::Object, |
119 |
|
|
public virtual omniObjRef |
120 |
|
|
{ |
121 |
|
|
public: |
122 |
|
|
// IDL operations |
123 |
|
|
char* echoString(const char* mesg); |
124 |
|
|
|
125 |
|
|
// Constructors |
126 |
|
✗ |
inline _objref_Echo() { _PR_setobj(0); } // nil |
127 |
|
|
_objref_Echo(omniIOR*, omniIdentity*); |
128 |
|
|
|
129 |
|
|
protected: |
130 |
|
|
virtual ~_objref_Echo(); |
131 |
|
|
|
132 |
|
|
|
133 |
|
|
private: |
134 |
|
|
virtual void* _ptrToObjRef(const char*); |
135 |
|
|
|
136 |
|
|
_objref_Echo(const _objref_Echo&); |
137 |
|
|
_objref_Echo& operator = (const _objref_Echo&); |
138 |
|
|
// not implemented |
139 |
|
|
|
140 |
|
|
friend class Echo; |
141 |
|
|
}; |
142 |
|
|
|
143 |
|
|
class _pof_Echo : public _OMNI_NS(proxyObjectFactory) { |
144 |
|
|
public: |
145 |
|
1 |
inline _pof_Echo() : _OMNI_NS(proxyObjectFactory)(Echo::_PD_repoId) {} |
146 |
|
|
virtual ~_pof_Echo(); |
147 |
|
|
|
148 |
|
|
virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*); |
149 |
|
|
virtual _CORBA_Boolean is_a(const char*) const; |
150 |
|
|
}; |
151 |
|
|
|
152 |
|
|
class _impl_Echo : |
153 |
|
|
public virtual omniServant |
154 |
|
|
{ |
155 |
|
|
public: |
156 |
|
|
virtual ~_impl_Echo(); |
157 |
|
|
|
158 |
|
|
virtual char* echoString(const char* mesg) = 0; |
159 |
|
|
|
160 |
|
|
public: // Really protected, workaround for xlC |
161 |
|
|
virtual _CORBA_Boolean _dispatch(omniCallHandle&); |
162 |
|
|
|
163 |
|
|
private: |
164 |
|
|
virtual void* _ptrToInterface(const char*); |
165 |
|
|
virtual const char* _mostDerivedRepoId(); |
166 |
|
|
|
167 |
|
|
}; |
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
class POA_Echo : |
173 |
|
|
public virtual _impl_Echo, |
174 |
|
|
public virtual ::PortableServer::ServantBase |
175 |
|
|
{ |
176 |
|
|
public: |
177 |
|
|
virtual ~POA_Echo(); |
178 |
|
|
|
179 |
|
1 |
inline ::Echo_ptr _this() { |
180 |
|
1 |
return (::Echo_ptr) _do_this(::Echo::_PD_repoId); |
181 |
|
|
} |
182 |
|
|
}; |
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
#undef _core_attr |
191 |
|
|
#undef _dyn_attr |
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
inline void |
196 |
|
✗ |
Echo::_marshalObjRef(::Echo_ptr obj, cdrStream& s) { |
197 |
|
✗ |
omniObjRef::_marshal(obj->_PR_getobj(),s); |
198 |
|
|
} |
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
#ifdef USE_stub_in_nt_dll_NOT_DEFINED_echo |
203 |
|
|
# undef USE_stub_in_nt_dll |
204 |
|
|
# undef USE_stub_in_nt_dll_NOT_DEFINED_echo |
205 |
|
|
#endif |
206 |
|
|
#ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_echo |
207 |
|
|
# undef USE_core_stub_in_nt_dll |
208 |
|
|
# undef USE_core_stub_in_nt_dll_NOT_DEFINED_echo |
209 |
|
|
#endif |
210 |
|
|
#ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_echo |
211 |
|
|
# undef USE_dyn_stub_in_nt_dll |
212 |
|
|
# undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_echo |
213 |
|
|
#endif |
214 |
|
|
|
215 |
|
|
#endif // __echo_hh__ |
216 |
|
|
|
217 |
|
|
|