hpp-corbaserver  6.0.0
Corba server for Humanoid Path Planner applications
path_projectors.hh
Go to the documentation of this file.
1 #ifndef hpp_core_idl__path__projectors_hxx__
2 #define hpp_core_idl__path__projectors_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/path_projectors.idl
6 //
7 
9 
10 #include <sstream>
11 
12 #include <hpp/corbaserver/fwd.hh>
15 
16 
17 
18 //
19 // Implementational code for IDL interface hpp::core_idl::PathProjector
20 //
21 namespace hpp {
22 
23 namespace core_impl {
24 template <typename _Base, typename _Storage>
26  const _Storage& s)
27  : hpp::corbaServer::ServantBase<hpp::core::PathProjector, _Storage> (server, s)
28 {
29  // add extra constructor code here
30 }
31 template <typename _Base, typename _Storage>
33 {
34  // add extra destructor code here
35 }
36 
37 // Methods corresponding to IDL attributes and operations
38 
39 template <typename _Base, typename _Storage>
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>
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>
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>
74 {
75  try {
76  // generated from /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.0/idl/hpp/core_idl/path_projectors.idl:21
77  hpp::core::PathPtr_t _input =
78  ::hpp::corbaServer::reference_to_object<hpp::core::Path>
79  (server_, input);
80  hpp::core::PathPtr_t __return__;
81  success = getT()->apply (_input, __return__);
83  hpp::core_impl::Path>(server_, __return__)._retn();
84 
85  } catch (const std::exception& e) {
86  throw ::hpp::Error (e.what());
87  }
88 }
89 
90 // End of implementational code
91 } // namespace core_impl
92 
93 } // namespace hpp
94 
95 
96 
97 
98 
99 #endif // hpp_core_idl__path__projectors_hxx__
100 
bool persistantStorage() const
See persistantStorage(bool)
Definition: servant-base.hh:166
Implementation of Hpp module Corba server.
Definition: server.hh:78
Definition: path_projectors-fwd.hh:28
::CORBA::Boolean deleteIfExpired()
Definition: path_projectors.hh:51
hpp::core_idl::Path_ptr apply(hpp::core_idl::Path_ptr input, ::CORBA::Boolean &success)
Definition: path_projectors.hh:73
PathProjectorServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: path_projectors.hh:25
virtual ~PathProjectorServant()
Definition: path_projectors.hh:32
void deleteThis()
Definition: path_projectors.hh:40
Definition: paths-fwd.hh:29
ReturnType::Object_var makeServantDownCast(Server *server, const typename ServantBaseType::Storage &t)
Definition: servant-base.hh:407
core::PathPtr_t PathPtr_t
Definition: fwd.hh:96
PathServant< POA_hpp::core_idl::Path, hpp::weak_ptr< hpp::core::Path > > Path
Definition: paths-fwd.hh:92
Implement CORBA interface `‘Obstacle’'.
Definition: client.hh:46
_objref_Path * Path_ptr
Definition: path_planners-idl.hh:83