hpp-corbaserver  4.9.0
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.9.0/idl/hpp/core_idl/path_validations.idl
6 //
7 
9 
10 #include <sstream>
11 
12 #include <hpp/corbaserver/fwd.hh>
15 
16 namespace hpp {
17 
18 namespace corbaServer {
19 
20 //
21 // Implementational code for IDL interface hpp::core_idl::PathValidation
22 //
23 namespace core_impl {
24 template <typename _Base, typename _Storage>
26  : 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.9.0/idl/hpp/core_idl/path_validations.idl:23
43  core::PathPtr_t _p (reference_to_servant_base<core::Path>(server_, p)->get());
44  core::PathPtr_t vp;
46 
47  bool res = get()->validate (_p, reverse, vp, pvr);
48 
49  if (pvr) {
50  std::ostringstream oss; oss << *pvr;
51  std::string res = oss.str();
52  report = CORBA::string_dup(res.c_str());
53  } else {
54  report = CORBA::string_dup("");
55  }
56 
57  validPart = makeServant<hpp::core_idl::Path_ptr> (server_, new Path (server_, vp));
58  return res;
59 
60  } catch (const std::exception& e) {
61  throw ::hpp::Error (e.what());
62  }
63 }
64 
65 // End of implementational code
66 } // namespace core_impl
67 
68 
69 
70 } // namespace hpp
71 
72 } // namespace corbaServer
73 
74 #endif // hpp_core_idl__path__validations_hxx__
75 
Definition: servant-base.hh:100
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:27
_CORBA_ObjRef_OUT_arg< _objref_Path, Path_Helper > Path_out
Definition: paths-idl.hh:118
_objref_Path * Path_ptr
Definition: paths-idl.hh:100
::CORBA::String_out PathValidationReport_out
Definition: path_validations-idl.hh:73
Definition: path_validations-fwd.hh:26
virtual ~PathValidationServant()
Definition: path_validations.hh:31
::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
Implementation of Hpp module Corba server.
Definition: server.hh:54
PathValidationServant(Server *server, const _Storage &s)
Definition: path_validations.hh:25
PathServant< POA_hpp::core_idl::Path, boost::weak_ptr< hpp::core::Path > > Path
Definition: paths-fwd.hh:80
core::PathValidationReportPtr_t PathValidationReportPtr_t
Definition: fwd.hh:69
core::PathPtr_t PathPtr_t
Definition: fwd.hh:68