hpp-affordance-corba  4.13.0
Corba server for Humanoid Path Planner Affordance applications
server.hh
Go to the documentation of this file.
1 // Copyright (C) 2016 by Anna Seppala
2 //
3 // This file is part of the hpp-corbaserver.
4 //
5 // This software is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the
7 // implied warranties of fitness for a particular purpose.
8 //
9 // See the COPYING file for more information.
10 
11 #ifndef HPP_AFFORDANCE_CORBA_SERVER_HH
12 #define HPP_AFFORDANCE_CORBA_SERVER_HH
13 
14 #include <hpp/corba/template/server.hh>
17 #include <hpp/corbaserver/server-plugin.hh>
18 
19 #include "hpp/corbaserver/problem-solver-map.hh"
20 
21 namespace hpp {
22 namespace affordanceCorba {
23 namespace impl {
24 class Afford;
25 } // namespace impl
26 
27 class HPP_AFFORDANCE_CORBA_DLLAPI Server : public corbaServer::ServerPlugin {
28  public:
29  Server(corbaServer::Server* parent);
30 
32  ~Server();
33 
34  void startCorbaServer(const std::string& contextId,
35  const std::string& contextKind);
36 
37  std::string name() const;
38 
39  ::CORBA::Object_ptr servant(const std::string& name) const;
40 
41  private:
42  corba::Server<impl::Afford>* impl_;
43 };
44 
45 } // end of namespace affordanceCorba.
46 } // end of namespace hpp.
47 #endif // HPP_AFFORDANCE_CORBA_SERVER_HH
#define HPP_AFFORDANCE_CORBA_DLLAPI
Definition: config.hh:64
Definition: fwd.hh:21
Definition: server.hh:27