hpp-corbaserver  4.10.1
Corba server for Humanoid Path Planner applications
distances-idl.hh
Go to the documentation of this file.
1 // This file is generated by omniidl (C++ backend)- omniORB_4_2. Do not edit.
2 #ifndef pp_core_idl__distances_hh__
3 #define pp_core_idl__distances_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_distances
11 #endif
12 #ifndef USE_core_stub_in_nt_dll
13 # define USE_core_stub_in_nt_dll_NOT_DEFINED_distances
14 #endif
15 #ifndef USE_dyn_stub_in_nt_dll
16 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_distances
17 #endif
18 
19 
20 
21 #ifndef pp_core_idl__common_hh_EXTERNAL_GUARD__
22 #define pp_core_idl__common_hh_EXTERNAL_GUARD__
23 #include <hpp/common-idl.hh>
24 #endif
25 
26 
27 
28 #ifdef USE_stub_in_nt_dll
29 # ifndef USE_core_stub_in_nt_dll
30 # define USE_core_stub_in_nt_dll
31 # endif
32 # ifndef USE_dyn_stub_in_nt_dll
33 # define USE_dyn_stub_in_nt_dll
34 # endif
35 #endif
36 
37 #ifdef _core_attr
38 # error "A local CPP macro _core_attr has already been defined."
39 #else
40 # ifdef USE_core_stub_in_nt_dll
41 # define _core_attr _OMNIORB_NTDLL_IMPORT
42 # else
43 # define _core_attr
44 # endif
45 #endif
46 
47 #ifdef _dyn_attr
48 # error "A local CPP macro _dyn_attr has already been defined."
49 #else
50 # ifdef USE_dyn_stub_in_nt_dll
51 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
52 # else
53 # define _dyn_attr
54 # endif
55 #endif
56 
57 
58 
59 _CORBA_MODULE hpp
60 
61 _CORBA_MODULE_BEG
62 
63  _CORBA_MODULE core_idl
64 
65  _CORBA_MODULE_BEG
66 
67 #ifndef __hpp_mcore__idl_mDistance__
68 #define __hpp_mcore__idl_mDistance__
69  class Distance;
70  class _objref_Distance;
72 
75 
76  class Distance_Helper {
77  public:
79 
80  static _ptr_type _nil();
81  static _CORBA_Boolean is_nil(_ptr_type);
82  static void release(_ptr_type);
83  static void duplicate(_ptr_type);
84  static void marshalObjRef(_ptr_type, cdrStream&);
85  static _ptr_type unmarshalObjRef(cdrStream&);
86  };
87 
88  typedef _CORBA_ObjRef_Var<_objref_Distance, Distance_Helper> Distance_var;
89  typedef _CORBA_ObjRef_OUT_arg<_objref_Distance,Distance_Helper > Distance_out;
90 
91 #endif
92 
93  // interface Distance
94  class Distance {
95  public:
96  // Declarations for this interface type.
99 
100  static _ptr_type _duplicate(_ptr_type);
101  static _ptr_type _narrow(::CORBA::Object_ptr);
102  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
103 
104  static _ptr_type _nil();
105 
106  static inline void _marshalObjRef(_ptr_type, cdrStream&);
107 
108  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
109  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
110  if (o)
111  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
112  else
113  return _nil();
114  }
115 
116  static inline _ptr_type _fromObjRef(omniObjRef* o) {
117  if (o)
118  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
119  else
120  return _nil();
121  }
122 
123  static _core_attr const char* _PD_repoId;
124 
125  // Other IDL defined within this scope.
126 
127  };
128 
130  public virtual ::CORBA::Object,
131  public virtual omniObjRef
132  {
133  public:
134  // IDL operations
136 
137  // Constructors
138  inline _objref_Distance() { _PR_setobj(0); } // nil
139  _objref_Distance(omniIOR*, omniIdentity*);
140 
141  protected:
142  virtual ~_objref_Distance();
143 
144 
145  private:
146  virtual void* _ptrToObjRef(const char*);
147 
149  _objref_Distance& operator = (const _objref_Distance&);
150  // not implemented
151 
152  friend class Distance;
153  };
154 
155  class _pof_Distance : public _OMNI_NS(proxyObjectFactory) {
156  public:
157  inline _pof_Distance() : _OMNI_NS(proxyObjectFactory)(Distance::_PD_repoId) {}
158  virtual ~_pof_Distance();
159 
160  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
161  virtual _CORBA_Boolean is_a(const char*) const;
162  };
163 
165  public virtual omniServant
166  {
167  public:
168  virtual ~_impl_Distance();
169 
170  virtual value_type call(const ::hpp::floatSeq& q1, const ::hpp::floatSeq& q2) = 0;
171 
172  public: // Really protected, workaround for xlC
173  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
174 
175  private:
176  virtual void* _ptrToInterface(const char*);
177  virtual const char* _mostDerivedRepoId();
178 
179  };
180 
181 
182 #ifndef __hpp_mcore__idl_mWeighedDistance__
183 #define __hpp_mcore__idl_mWeighedDistance__
184  class WeighedDistance;
187 
190 
192  public:
194 
195  static _ptr_type _nil();
196  static _CORBA_Boolean is_nil(_ptr_type);
197  static void release(_ptr_type);
198  static void duplicate(_ptr_type);
199  static void marshalObjRef(_ptr_type, cdrStream&);
200  static _ptr_type unmarshalObjRef(cdrStream&);
201  };
202 
203  typedef _CORBA_ObjRef_Var<_objref_WeighedDistance, WeighedDistance_Helper> WeighedDistance_var;
204  typedef _CORBA_ObjRef_OUT_arg<_objref_WeighedDistance,WeighedDistance_Helper > WeighedDistance_out;
205 
206 #endif
207 
208  // interface WeighedDistance
210  public:
211  // Declarations for this interface type.
214 
215  static _ptr_type _duplicate(_ptr_type);
216  static _ptr_type _narrow(::CORBA::Object_ptr);
217  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
218 
219  static _ptr_type _nil();
220 
221  static inline void _marshalObjRef(_ptr_type, cdrStream&);
222 
223  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
224  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
225  if (o)
226  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
227  else
228  return _nil();
229  }
230 
231  static inline _ptr_type _fromObjRef(omniObjRef* o) {
232  if (o)
233  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
234  else
235  return _nil();
236  }
237 
238  static _core_attr const char* _PD_repoId;
239 
240  // Other IDL defined within this scope.
241 
242  };
243 
245  public virtual _objref_Distance
246  {
247  public:
248  // IDL operations
249  floatSeq* getWeights();
250  void setWeights(const ::hpp::floatSeq& weights);
251 
252  // Constructors
253  inline _objref_WeighedDistance() { _PR_setobj(0); } // nil
254  _objref_WeighedDistance(omniIOR*, omniIdentity*);
255 
256  protected:
257  virtual ~_objref_WeighedDistance();
258 
259 
260  private:
261  virtual void* _ptrToObjRef(const char*);
262 
265  // not implemented
266 
267  friend class WeighedDistance;
268  };
269 
270  class _pof_WeighedDistance : public _OMNI_NS(proxyObjectFactory) {
271  public:
272  inline _pof_WeighedDistance() : _OMNI_NS(proxyObjectFactory)(WeighedDistance::_PD_repoId) {}
273  virtual ~_pof_WeighedDistance();
274 
275  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
276  virtual _CORBA_Boolean is_a(const char*) const;
277  };
278 
280  public virtual _impl_Distance
281  {
282  public:
283  virtual ~_impl_WeighedDistance();
284 
285  virtual floatSeq* getWeights() = 0;
286  virtual void setWeights(const ::hpp::floatSeq& weights) = 0;
287 
288  public: // Really protected, workaround for xlC
289  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
290 
291  private:
292  virtual void* _ptrToInterface(const char*);
293  virtual const char* _mostDerivedRepoId();
294 
295  };
296 
297 
298  _CORBA_MODULE_END
299 
300 _CORBA_MODULE_END
301 
302 
303 
304 _CORBA_MODULE POA_hpp
305 _CORBA_MODULE_BEG
306 
307  _CORBA_MODULE core_idl
308  _CORBA_MODULE_BEG
309 
310  class Distance :
311  public virtual hpp::core_idl::_impl_Distance,
312  public virtual ::PortableServer::ServantBase
313  {
314  public:
315  virtual ~Distance();
316 
318  return (::hpp::core_idl::Distance_ptr) _do_this(::hpp::core_idl::Distance::_PD_repoId);
319  }
320  };
321 
322  class WeighedDistance :
323  public virtual hpp::core_idl::_impl_WeighedDistance,
324  public virtual Distance
325  {
326  public:
327  virtual ~WeighedDistance();
328 
330  return (::hpp::core_idl::WeighedDistance_ptr) _do_this(::hpp::core_idl::WeighedDistance::_PD_repoId);
331  }
332  };
333 
334  _CORBA_MODULE_END
335 
336 _CORBA_MODULE_END
337 
338 
339 
340 _CORBA_MODULE OBV_hpp
341 _CORBA_MODULE_BEG
342 
343  _CORBA_MODULE core_idl
344  _CORBA_MODULE_BEG
345 
346  _CORBA_MODULE_END
347 
348 _CORBA_MODULE_END
349 
350 
351 
352 
353 
354 #undef _core_attr
355 #undef _dyn_attr
356 
357 
358 
359 inline void
360 hpp::core_idl::Distance::_marshalObjRef(::hpp::core_idl::Distance_ptr obj, cdrStream& s) {
361  omniObjRef::_marshal(obj->_PR_getobj(),s);
362 }
363 
364 inline void
365 hpp::core_idl::WeighedDistance::_marshalObjRef(::hpp::core_idl::WeighedDistance_ptr obj, cdrStream& s) {
366  omniObjRef::_marshal(obj->_PR_getobj(),s);
367 }
368 
369 
370 
371 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_distances
372 # undef USE_stub_in_nt_dll
373 # undef USE_stub_in_nt_dll_NOT_DEFINED_distances
374 #endif
375 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_distances
376 # undef USE_core_stub_in_nt_dll
377 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_distances
378 #endif
379 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_distances
380 # undef USE_dyn_stub_in_nt_dll
381 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_distances
382 #endif
383 
384 #endif // __distances_hh__
385 
static _ptr_type _fromObjRef(omniObjRef *o)
Definition: distances-idl.hh:231
_CORBA_ObjRef_Var< _objref_Distance, Distance_Helper > Distance_var
Definition: distances-idl.hh:88
static _ptr_type _nil()
inline ::hpp::core_idl::Distance_ptr _this()
Definition: distances-idl.hh:317
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:27
_pof_WeighedDistance()
Definition: distances-idl.hh:272
Definition: distances-idl.hh:155
static _ptr_type _unmarshalObjRef(cdrStream &s)
Definition: distances-idl.hh:223
Definition: distances-idl.hh:279
Distance_ptr _ptr_type
Definition: distances-idl.hh:78
_objref_Distance()
Definition: distances-idl.hh:138
static _CORBA_Boolean is_nil(_ptr_type)
Definition: distances-idl.hh:209
WeighedDistance_ptr _ptr_type
Definition: distances-idl.hh:193
_CORBA_ObjRef_OUT_arg< _objref_Distance, Distance_Helper > Distance_out
Definition: distances-idl.hh:89
Definition: distances-idl.hh:191
#define _core_attr
Definition: distances-idl.hh:43
static void marshalObjRef(_ptr_type, cdrStream &)
Definition: distances-idl.hh:129
static _ptr_type unmarshalObjRef(cdrStream &)
inline ::hpp::core_idl::WeighedDistance_ptr _this()
Definition: distances-idl.hh:329
static _core_attr const char * _PD_repoId
Definition: distances-idl.hh:238
Definition: distances-idl.hh:94
WeighedDistance_ptr _ptr_type
Definition: distances-idl.hh:212
WeighedDistance_ptr WeighedDistanceRef
Definition: distances-idl.hh:189
Definition: _problem-idl.hh:140
Distance_ptr DistanceRef
Definition: distances-idl.hh:74
Distance_ptr _ptr_type
Definition: distances-idl.hh:97
_objref_WeighedDistance()
Definition: distances-idl.hh:253
_pof_Distance()
Definition: distances-idl.hh:157
static void release(_ptr_type)
_CORBA_ObjRef_Var< _objref_Distance, Distance_Helper > Distance_var
Definition: _problem-idl.hh:152
static void duplicate(_ptr_type)
WeighedDistance_var _var_type
Definition: distances-idl.hh:213
static _ptr_type _fromObjRef(omniObjRef *o)
Definition: distances-idl.hh:116
Distance_var _var_type
Definition: distances-idl.hh:98
_objref_WeighedDistance * WeighedDistance_ptr
Definition: distances-idl.hh:186
Definition: distances-idl.hh:244
::CORBA::Double value_type
Definition: common-idl.hh:61
Definition: distances-idl.hh:270
Definition: common-idl.hh:570
static _ptr_type _unmarshalObjRef(cdrStream &s)
Definition: distances-idl.hh:108
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:32
_CORBA_ObjRef_Var< _objref_WeighedDistance, WeighedDistance_Helper > WeighedDistance_var
Definition: distances-idl.hh:203
_CORBA_ObjRef_OUT_arg< _objref_WeighedDistance, WeighedDistance_Helper > WeighedDistance_out
Definition: distances-idl.hh:204
Definition: distances-idl.hh:164
_objref_Distance * Distance_ptr
Definition: distances-idl.hh:71
static _core_attr const char * _PD_repoId
Definition: distances-idl.hh:123