hpp-corbaserver  4.10.1
Corba server for Humanoid Path Planner applications
path_validations.hh
Go to the documentation of this file.
1 #ifndef hpp_core_idl__path__validations_hxx__
2 #define hpp_core_idl__path__validations_hxx__
3 
4 //
5 // Implemention of IDL interfaces in file /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-4.10.1/idl/hpp/core_idl/path_validations.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::PathValidation
20 //
21 namespace hpp {
22 
23 namespace core_impl {
24 template <typename _Base, typename _Storage>
26  : hpp::corbaServer::ServantBase<hpp::core::PathValidation, _Storage> (server, s)
27 {
28  // add extra constructor code here
29 }
30 template <typename _Base, typename _Storage>
32 {
33  // add extra destructor code here
34 }
35 
36 // Methods corresponding to IDL attributes and operations
37 
38 template <typename _Base, typename _Storage>
40 {
41  try {
42  // generated from /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-4.10.1/idl/hpp/core_idl/path_validations.idl:23
43  using namespace hpp::core;
44  PathPtr_t _p (::hpp::corbaServer::reference_to_servant_base<core::Path>(server_, p)->get());
45  PathPtr_t vp;
47 
48  bool res = get()->validate (_p, reverse, vp, pvr);
49 
50  if (pvr) {
51  std::ostringstream oss; oss << *pvr;
52  std::string res = oss.str();
53  report = CORBA::string_dup(res.c_str());
54  } else {
55  report = CORBA::string_dup("");
56  }
57 
58  validPart = ::hpp::corbaServer::makeServant<hpp::core_idl::Path_ptr> (server_, new Path (server_, vp));
59  return res;
60 
61  } catch (const std::exception& e) {
62  throw ::hpp::Error (e.what());
63  }
64 }
65 
66 // End of implementational code
67 } // namespace core_impl
68 
69 } // namespace hpp
70 
71 
72 
73 
74 
75 #endif // hpp_core_idl__path__validations_hxx__
76 
servant-base.hh
conversions.hh
hpp::core_impl::PathValidationServant::~PathValidationServant
virtual ~PathValidationServant()
Definition: path_validations.hh:31
hpp::corbaServer::Server
Implementation of Hpp module Corba server.
Definition: server.hh:54
Path_out
_CORBA_ObjRef_OUT_arg< _objref_Path, Path_Helper > Path_out
Definition: path_planners-idl.hh:101
hpp::core_impl::PathValidationServant
Definition: path_validations-fwd.hh:26
fwd.hh
hpp::core_impl::PathServant
Definition: paths-fwd.hh:26
hpp
Implement CORBA interface `‘Obstacle’'.
Definition: basic-server.hh:27
hpp::core_impl::PathValidationServant::PathValidationServant
PathValidationServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: path_validations.hh:25
hpp::corbaServer::PathValidationReportPtr_t
core::PathValidationReportPtr_t PathValidationReportPtr_t
Definition: fwd.hh:75
hpp::core_impl::PathValidationServant::validate
::CORBA::Boolean validate(hpp::core_idl::Path_ptr p, ::CORBA::Boolean reverse, hpp::core_idl::Path_out validPart, hpp::core_idl::PathValidationReport_out report)
Definition: path_validations.hh:39
PathValidationReport_out
::CORBA::String_out PathValidationReport_out
Definition: path_validations-idl.hh:81
hpp::corbaServer::PathPtr_t
core::PathPtr_t PathPtr_t
Definition: fwd.hh:74
path_validations-fwd.hh
Path_ptr
_objref_Path * Path_ptr
Definition: path_planners-idl.hh:83