server.hh 1.6 KB
Newer Older
Steve Tonneau's avatar
Steve Tonneau committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2014 CNRS-LAAS
// Author: Florent Lamiraux.
//
// This file is part of the hpp-manipulation-corba.
//
// hpp-manipulation-corba is free software: you can redistribute
// it and/or modify it under the terms of the GNU Lesser General
// Public License as published by the Free Software Foundation, either
// version 3 of the License, or (at your option) any later version.
//
// hpp-manipulation-corba is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with hpp-manipulation-corba.  If not, see
// <http://www.gnu.org/licenses/>.

#ifndef HPP_RBPRM_CORBA_SERVER_HH
Guilhem Saurel's avatar
Format    
Guilhem Saurel committed
21
#define HPP_RBPRM_CORBA_SERVER_HH
Steve Tonneau's avatar
Steve Tonneau committed
22

Guilhem Saurel's avatar
Format    
Guilhem Saurel committed
23
#include <hpp/corba/template/server.hh>
24

Guilhem Saurel's avatar
Format    
Guilhem Saurel committed
25
26
27
#include <hpp/corbaserver/problem-solver-map.hh>
#include <hpp/corbaserver/rbprm/config.hh>
#include <hpp/corbaserver/server-plugin.hh>
Steve Tonneau's avatar
Steve Tonneau committed
28
29

namespace hpp {
Guilhem Saurel's avatar
Format    
Guilhem Saurel committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace rbprm {
namespace impl {
class RbprmBuilder;
}
class HPP_RBPRM_CORBA_DLLAPI Server : public corbaServer::ServerPlugin {
 public:
  Server(corbaServer::Server* parent);

  ~Server();

  /// Start corba server
  /// Call hpp::corba::Server <impl::Problem>::startCorbaServer
  void startCorbaServer(const std::string& contextId, const std::string& contextKind);

  std::string name() const;

 public:
  corba::Server<impl::RbprmBuilder>* rbprmBuilder_;
};  // class Server
}  // namespace rbprm
}  // namespace hpp

#endif  // HPP_RBPRM_CORBA_SERVER_HH