hpp-affordance-corba  4.12.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>
15 #include <hpp/corbaserver/server-plugin.hh>
18 #include "hpp/corbaserver/problem-solver-map.hh"
19 
20 namespace hpp {
21 namespace affordanceCorba {
22 namespace impl {
23 class Afford;
24 } // namespace impl
25 
26 class HPP_AFFORDANCE_CORBA_DLLAPI Server : public corbaServer::ServerPlugin {
27  public:
28  Server(corbaServer::Server* parent);
29 
31  ~Server();
32 
33  void startCorbaServer(const std::string& contextId, const std::string& contextKind);
34 
35  std::string name() const;
36 
37  ::CORBA::Object_ptr servant(const std::string& name) const;
38 
39  private:
40  corba::Server<impl::Afford>* impl_;
41 };
42 
43 } // end of namespace affordanceCorba.
44 } // end of namespace hpp.
45 #endif // HPP_AFFORDANCE_CORBA_SERVER_HH
#define HPP_AFFORDANCE_CORBA_DLLAPI
Definition: config.hh:64
Definition: fwd.hh:20
Definition: server.hh:26