File tree 5 files changed +46
-13
lines changed
5 files changed +46
-13
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ set_target_properties(${target} PROPERTIES
25
25
CXX_STANDARD_REQUIRED ON
26
26
)
27
27
target_include_directories (${target}
28
+ PRIVATE
29
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /src>"
28
30
PUBLIC
29
31
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>"
30
32
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >"
Original file line number Diff line number Diff line change @@ -39,19 +39,6 @@ namespace oak {
39
39
class ServerImplHandler ;
40
40
using ServerImpl = boost::network::http::server<ServerImplHandler>;
41
41
42
- class RequestStub : public cloe ::Request {
43
- public:
44
- cloe::RequestMethod method () const override { throw ERROR; }
45
- cloe::ContentType type () const override { throw ERROR; }
46
- const std::string& body () const override { throw ERROR; }
47
- const std::string& uri () const override { throw ERROR; }
48
- const std::string& endpoint () const override { throw ERROR; }
49
- const std::map<std::string, std::string>& query_map () const override { throw ERROR; }
50
-
51
- private:
52
- const std::logic_error ERROR = std::logic_error(" using the request in any way is erroneous" );
53
- };
54
-
55
42
/* *
56
43
* ServerImplHandler is the main request handler for the server.
57
44
*
Original file line number Diff line number Diff line change 28
28
29
29
#include < cloe/core.hpp> // for Json, logger::get
30
30
#include " oak/server.hpp" // for Server
31
+ #include " oak/request_stub.hpp" // for RequestStub
31
32
32
33
namespace oak {
33
34
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2023 Robert Bosch GmbH
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ * SPDX-License-Identifier: Apache-2.0
17
+ */
18
+ /* *
19
+ * \file oak/request_stub.hpp
20
+ */
21
+
22
+ #pragma once
23
+
24
+ #include < cloe/handler.hpp> // for Request
25
+
26
+ namespace oak {
27
+
28
+ class RequestStub : public cloe ::Request {
29
+ public:
30
+ cloe::RequestMethod method () const override { throw ERROR; }
31
+ cloe::ContentType type () const override { throw ERROR; }
32
+ const std::string& body () const override { throw ERROR; }
33
+ const std::string& uri () const override { throw ERROR; }
34
+ const std::string& endpoint () const override { throw ERROR; }
35
+ const std::map<std::string, std::string>& query_map () const override { throw ERROR; }
36
+
37
+ private:
38
+ const std::logic_error ERROR = std::logic_error(" using the request in any way is erroneous" );
39
+ };
40
+
41
+ } // namespace oak
Original file line number Diff line number Diff line change 40
40
#include < cloe/handler.hpp> // for Request
41
41
using namespace cloe ; // NOLINT(build/namespaces)
42
42
43
+ #include " oak/request_stub.hpp" // for RequestStub
44
+
43
45
namespace oak {
44
46
45
47
namespace {
You can’t perform that action at this time.
0 commit comments