| Line | Branch | Exec | Source |
|---|---|---|---|
| 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 | #include <hpp/corbaserver/problem-solver-map.hh> | ||
| 12 | #include <hpp/core/problem-solver.hh> | ||
| 13 | #include <hpp/util/debug.hh> | ||
| 14 | #include <iostream> | ||
| 15 | |||
| 16 | #include "hpp/corbaserver/server.hh" | ||
| 17 | |||
| 18 | typedef hpp::corbaServer::Server CorbaServer; | ||
| 19 | typedef hpp::core::ProblemSolverPtr_t ProblemSolverPtr_t; | ||
| 20 | typedef hpp::core::ProblemSolver ProblemSolver; | ||
| 21 | |||
| 22 | ✗ | int main(int argc, const char* argv[]) { | |
| 23 | ✗ | ProblemSolverPtr_t problemSolver = ProblemSolver::create(); | |
| 24 | CorbaServer corbaServer(problemSolver, argc, const_cast<const char**>(argv), | ||
| 25 | ✗ | true); | |
| 26 | |||
| 27 | ✗ | corbaServer.startCorbaServer(); | |
| 28 | ✗ | corbaServer.loadPlugin(corbaServer.mainContextId(), "affordance-corba.so"); | |
| 29 | ✗ | corbaServer.processRequest(true); | |
| 30 | ✗ | } | |
| 31 |