Directory: | ./ |
---|---|
File: | src/hpp-corbaserver.cc |
Date: | 2024-12-13 15:50:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 7 | 8 | 87.5% |
Branches: | 8 | 16 | 50.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | // Copyright (C) 2009, 2010 by Florent Lamiraux, Thomas Moulard, JRL. | ||
2 | // | ||
3 | |||
4 | // Redistribution and use in source and binary forms, with or without | ||
5 | // modification, are permitted provided that the following conditions are | ||
6 | // met: | ||
7 | // | ||
8 | // 1. Redistributions of source code must retain the above copyright | ||
9 | // notice, this list of conditions and the following disclaimer. | ||
10 | // | ||
11 | // 2. Redistributions in binary form must reproduce the above copyright | ||
12 | // notice, this list of conditions and the following disclaimer in the | ||
13 | // documentation and/or other materials provided with the distribution. | ||
14 | // | ||
15 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
16 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
17 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
18 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
19 | // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
20 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
21 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
22 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
23 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
25 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
26 | // DAMAGE. | ||
27 | // | ||
28 | // This software is provided "as is" without warranty of any kind, | ||
29 | // either expressed or implied, including but not limited to the | ||
30 | // implied warranties of fitness for a particular purpose. | ||
31 | // | ||
32 | // See the COPYING file for more information. | ||
33 | |||
34 | #include <hpp/core/problem-solver.hh> | ||
35 | #include <hpp/util/debug.hh> | ||
36 | #include <iostream> | ||
37 | |||
38 | #include "hpp/corbaserver/server.hh" | ||
39 | |||
40 | using hpp::corbaServer::Server; | ||
41 | |||
42 | 8 | int main(int argc, const char* argv[]) { | |
43 |
2/4✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
|
8 | Server server(hpp::core::ProblemSolver::create(), true); |
44 | |||
45 |
2/4✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 8 times.
|
8 | if (!server.parseArguments(argc, argv)) { |
46 | ✗ | return 1; | |
47 | } | ||
48 |
1/2✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
|
8 | server.initialize(); |
49 | |||
50 |
1/2✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
|
8 | server.startCorbaServer(); |
51 |
1/2✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
|
8 | server.processRequest(true); |
52 |
1/2✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
|
16 | } |
53 |