Line |
Branch |
Exec |
Source |
1 |
|
|
#ifndef hpp_manipulation_idl__device_hxx__ |
2 |
|
|
#define hpp_manipulation_idl__device_hxx__ |
3 |
|
|
|
4 |
|
|
// |
5 |
|
|
// Implemention of IDL interfaces in file /root/robotpkg/path/py-hpp-manipulation-corba/work/hpp-manipulation-corba-6.0.0/idl/hpp/manipulation_idl/device.idl |
6 |
|
|
// |
7 |
|
|
|
8 |
|
|
#include <hpp/manipulation_idl/device-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::manipulation_idl::Handle |
20 |
|
|
// |
21 |
|
|
namespace hpp { |
22 |
|
|
|
23 |
|
|
namespace manipulation_impl { |
24 |
|
|
template <typename _Base, typename _Storage> |
25 |
|
✗ |
HandleServant<_Base, _Storage>::HandleServant(::hpp::corbaServer::Server* server, |
26 |
|
|
const _Storage& s) |
27 |
|
✗ |
: hpp::corbaServer::ServantBase<hpp::manipulation::Handle, _Storage> (server, s) |
28 |
|
|
{ |
29 |
|
|
// add extra constructor code here |
30 |
|
|
} |
31 |
|
|
template <typename _Base, typename _Storage> |
32 |
|
✗ |
HandleServant<_Base, _Storage>::~HandleServant() |
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 HandleServant<_Base, _Storage>::setMask (const hpp::boolSeq& mask) |
41 |
|
|
{ |
42 |
|
|
try { |
43 |
|
|
// generated from /root/robotpkg/path/py-hpp-manipulation-corba/work/hpp-manipulation-corba-6.0.0/idl/hpp/manipulation_idl/device.idl:37 |
44 |
|
✗ |
std::vector<bool> _mask(hpp::corbaServer::boolSeqToVector(mask, 6)); |
45 |
|
✗ |
getT()->mask(_mask); |
46 |
|
|
|
47 |
|
✗ |
} catch (const std::exception& e) { |
48 |
|
✗ |
throw ::hpp::Error (e.what()); |
49 |
|
|
} |
50 |
|
|
} |
51 |
|
|
|
52 |
|
|
// End of implementational code |
53 |
|
|
} // namespace manipulation_impl |
54 |
|
|
|
55 |
|
|
} // namespace hpp |
56 |
|
|
|
57 |
|
|
// |
58 |
|
|
// Implementational code for IDL interface hpp::manipulation_idl::Device |
59 |
|
|
// |
60 |
|
|
namespace hpp { |
61 |
|
|
|
62 |
|
|
namespace manipulation_impl { |
63 |
|
|
template <typename _Base, typename _Storage> |
64 |
|
✗ |
DeviceServant<_Base, _Storage>::DeviceServant(::hpp::corbaServer::Server* server, |
65 |
|
|
const _Storage& s) |
66 |
|
✗ |
: hpp::pinocchio_impl::DeviceServant<_Base, _Storage> (server, s) |
67 |
|
|
{ |
68 |
|
|
// add extra constructor code here |
69 |
|
|
} |
70 |
|
|
template <typename _Base, typename _Storage> |
71 |
|
✗ |
DeviceServant<_Base, _Storage>::~DeviceServant() |
72 |
|
|
{ |
73 |
|
|
// add extra destructor code here |
74 |
|
|
} |
75 |
|
|
|
76 |
|
|
// Methods corresponding to IDL attributes and operations |
77 |
|
|
|
78 |
|
|
template <typename _Base, typename _Storage> |
79 |
|
✗ |
hpp::Names_t* DeviceServant<_Base, _Storage>::getHandleNames () |
80 |
|
|
{ |
81 |
|
|
try { |
82 |
|
|
// automatically generated code. |
83 |
|
|
|
84 |
|
✗ |
auto __return__ (getT()->handles.template getKeys < std::vector<std::string> > ()); |
85 |
|
|
|
86 |
|
✗ |
return hpp::corbaServer::toNames_t (__return__); |
87 |
|
✗ |
} catch (const std::exception& e) { |
88 |
|
✗ |
throw ::hpp::Error (e.what()); |
89 |
|
|
} |
90 |
|
|
} |
91 |
|
|
|
92 |
|
|
template <typename _Base, typename _Storage> |
93 |
|
✗ |
hpp::manipulation_idl::Handle_ptr DeviceServant<_Base, _Storage>::getHandle (const char* name) |
94 |
|
|
{ |
95 |
|
|
try { |
96 |
|
|
// automatically generated code. |
97 |
|
✗ |
std::string _name (name); |
98 |
|
✗ |
hpp::manipulation::HandlePtr_t __return__ (getT()->handles.get (_name)); |
99 |
|
|
|
100 |
|
✗ |
return ::hpp::corbaServer::makeServantDownCast<hpp::manipulation_impl::Handle,hpp::manipulation_impl::Handle>(server_, __return__)._retn(); |
101 |
|
✗ |
} catch (const std::exception& e) { |
102 |
|
✗ |
throw ::hpp::Error (e.what()); |
103 |
|
|
} |
104 |
|
|
} |
105 |
|
|
|
106 |
|
|
// End of implementational code |
107 |
|
|
} // namespace manipulation_impl |
108 |
|
|
|
109 |
|
|
} // namespace hpp |
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
#endif // hpp_manipulation_idl__device_hxx__ |
116 |
|
|
|
117 |
|
|
|