| Line |
Branch |
Exec |
Source |
| 1 |
|
|
#ifndef hpp_core_idl__distances_hxx__ |
| 2 |
|
|
#define hpp_core_idl__distances_hxx__ |
| 3 |
|
|
|
| 4 |
|
|
// |
| 5 |
|
|
// Implemention of IDL interfaces in file /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.0/idl/hpp/core_idl/distances.idl |
| 6 |
|
|
// |
| 7 |
|
|
|
| 8 |
|
|
#include <hpp/core_idl/distances-fwd.hh> |
| 9 |
|
|
|
| 10 |
|
|
#include <sstream> |
| 11 |
|
|
|
| 12 |
|
|
#include <hpp/corbaserver/fwd.hh> |
| 13 |
|
|
#include <hpp/corbaserver/conversions.hh> |
| 14 |
|
|
#include "hpp/corbaserver/servant-base.hh" |
| 15 |
|
|
|
| 16 |
|
|
|
| 17 |
|
|
|
| 18 |
|
|
// |
| 19 |
|
|
// Implementational code for IDL interface hpp::core_idl::Distance |
| 20 |
|
|
// |
| 21 |
|
|
namespace hpp { |
| 22 |
|
|
|
| 23 |
|
|
namespace core_impl { |
| 24 |
|
|
template <typename _Base, typename _Storage> |
| 25 |
|
✗ |
DistanceServant<_Base, _Storage>::DistanceServant(::hpp::corbaServer::Server* server, |
| 26 |
|
|
const _Storage& s) |
| 27 |
|
✗ |
: hpp::corbaServer::ServantBase<hpp::core::Distance, _Storage> (server, s) |
| 28 |
|
|
{ |
| 29 |
|
|
// add extra constructor code here |
| 30 |
|
|
} |
| 31 |
|
|
template <typename _Base, typename _Storage> |
| 32 |
|
✗ |
DistanceServant<_Base, _Storage>::~DistanceServant() |
| 33 |
|
|
{ |
| 34 |
|
|
// add extra destructor code here |
| 35 |
|
|
} |
| 36 |
|
|
|
| 37 |
|
|
// Methods corresponding to IDL attributes and operations |
| 38 |
|
|
|
| 39 |
|
|
template <typename _Base, typename _Storage> |
| 40 |
|
✗ |
void DistanceServant<_Base, _Storage>::deleteThis () |
| 41 |
|
|
{ |
| 42 |
|
|
try { |
| 43 |
|
|
// automatically generated code. |
| 44 |
|
✗ |
_ServantBase::deleteThis(); |
| 45 |
|
✗ |
} catch (const std::exception& e) { |
| 46 |
|
✗ |
throw ::hpp::Error (e.what()); |
| 47 |
|
|
} |
| 48 |
|
|
} |
| 49 |
|
|
|
| 50 |
|
|
template <typename _Base, typename _Storage> |
| 51 |
|
✗ |
::CORBA::Boolean DistanceServant<_Base, _Storage>::deleteIfExpired () |
| 52 |
|
|
{ |
| 53 |
|
|
try { |
| 54 |
|
|
// automatically generated code. |
| 55 |
|
✗ |
return _ServantBase::deleteIfExpired(); |
| 56 |
|
✗ |
} catch (const std::exception& e) { |
| 57 |
|
✗ |
throw ::hpp::Error (e.what()); |
| 58 |
|
|
} |
| 59 |
|
|
} |
| 60 |
|
|
|
| 61 |
|
|
template <typename _Base, typename _Storage> |
| 62 |
|
✗ |
void DistanceServant<_Base, _Storage>::persistantStorage (::CORBA::Boolean persistant) |
| 63 |
|
|
{ |
| 64 |
|
|
try { |
| 65 |
|
|
// automatically generated code. |
| 66 |
|
✗ |
_ServantBase::persistantStorage(persistant); |
| 67 |
|
✗ |
} catch (const std::exception& e) { |
| 68 |
|
✗ |
throw ::hpp::Error (e.what()); |
| 69 |
|
|
} |
| 70 |
|
|
} |
| 71 |
|
|
|
| 72 |
|
|
template <typename _Base, typename _Storage> |
| 73 |
|
✗ |
hpp::value_type DistanceServant<_Base, _Storage>::call (const hpp::floatSeq& q1, const hpp::floatSeq& q2) |
| 74 |
|
|
{ |
| 75 |
|
|
try { |
| 76 |
|
|
// automatically generated code. |
| 77 |
|
✗ |
hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1); |
| 78 |
|
✗ |
hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2); |
| 79 |
|
✗ |
hpp::value_type __return__ (getT()->operator() (_q1, _q2)); |
| 80 |
|
|
|
| 81 |
|
✗ |
return __return__; |
| 82 |
|
✗ |
} catch (const std::exception& e) { |
| 83 |
|
✗ |
throw ::hpp::Error (e.what()); |
| 84 |
|
|
} |
| 85 |
|
|
} |
| 86 |
|
|
|
| 87 |
|
|
// End of implementational code |
| 88 |
|
|
} // namespace core_impl |
| 89 |
|
|
|
| 90 |
|
|
} // namespace hpp |
| 91 |
|
|
|
| 92 |
|
|
// |
| 93 |
|
|
// Implementational code for IDL interface hpp::core_idl::WeighedDistance |
| 94 |
|
|
// |
| 95 |
|
|
namespace hpp { |
| 96 |
|
|
|
| 97 |
|
|
namespace core_impl { |
| 98 |
|
|
template <typename _Base, typename _Storage> |
| 99 |
|
✗ |
WeighedDistanceServant<_Base, _Storage>::WeighedDistanceServant(::hpp::corbaServer::Server* server, |
| 100 |
|
|
const _Storage& s) |
| 101 |
|
✗ |
: hpp::core_impl::DistanceServant<_Base, _Storage> (server, s) |
| 102 |
|
|
{ |
| 103 |
|
|
// add extra constructor code here |
| 104 |
|
|
} |
| 105 |
|
|
template <typename _Base, typename _Storage> |
| 106 |
|
✗ |
WeighedDistanceServant<_Base, _Storage>::~WeighedDistanceServant() |
| 107 |
|
|
{ |
| 108 |
|
|
// add extra destructor code here |
| 109 |
|
|
} |
| 110 |
|
|
|
| 111 |
|
|
// Methods corresponding to IDL attributes and operations |
| 112 |
|
|
|
| 113 |
|
|
template <typename _Base, typename _Storage> |
| 114 |
|
✗ |
hpp::floatSeq* WeighedDistanceServant<_Base, _Storage>::getWeights () |
| 115 |
|
|
{ |
| 116 |
|
|
try { |
| 117 |
|
|
// automatically generated code. |
| 118 |
|
|
|
| 119 |
|
✗ |
hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->weights ()); |
| 120 |
|
|
|
| 121 |
|
✗ |
return __return__; |
| 122 |
|
✗ |
} catch (const std::exception& e) { |
| 123 |
|
✗ |
throw ::hpp::Error (e.what()); |
| 124 |
|
|
} |
| 125 |
|
|
} |
| 126 |
|
|
|
| 127 |
|
|
template <typename _Base, typename _Storage> |
| 128 |
|
✗ |
void WeighedDistanceServant<_Base, _Storage>::setWeights (const hpp::floatSeq& weights) |
| 129 |
|
|
{ |
| 130 |
|
|
try { |
| 131 |
|
|
// automatically generated code. |
| 132 |
|
✗ |
hpp::core::vector_t _weights = hpp::corbaServer::floatSeqToVector (weights); |
| 133 |
|
✗ |
(getT()->weights (_weights)); |
| 134 |
|
|
|
| 135 |
|
|
|
| 136 |
|
✗ |
} catch (const std::exception& e) { |
| 137 |
|
✗ |
throw ::hpp::Error (e.what()); |
| 138 |
|
|
} |
| 139 |
|
|
} |
| 140 |
|
|
|
| 141 |
|
|
// End of implementational code |
| 142 |
|
|
} // namespace core_impl |
| 143 |
|
|
|
| 144 |
|
|
} // namespace hpp |
| 145 |
|
|
|
| 146 |
|
|
|
| 147 |
|
|
|
| 148 |
|
|
|
| 149 |
|
|
|
| 150 |
|
|
#endif // hpp_core_idl__distances_hxx__ |
| 151 |
|
|
|
| 152 |
|
|
|