MCPcopy Create free account
hub / github.com/COVESA/vsomeip / create_response

Method create_response

implementation/runtime/src/runtime_impl.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::shared_ptr<message> runtime_impl::create_response(const std::shared_ptr<message>& _request) const {
77 auto its_response = std::make_shared<message_impl>();
78 its_response->set_service(_request->get_service());
79 its_response->set_instance(_request->get_instance());
80 its_response->set_method(_request->get_method());
81 its_response->set_client(_request->get_client());
82 its_response->set_session(_request->get_session());
83 its_response->set_interface_version(_request->get_interface_version());
84 its_response->set_message_type(message_type_e::MT_RESPONSE);
85 its_response->set_return_code(return_code_e::E_OK);
86 its_response->set_reliable(_request->is_reliable());
87 return its_response;
88}
89
90std::shared_ptr<message> runtime_impl::create_notification(bool _reliable) const {
91 auto its_notification = std::make_shared<message_impl>();

Callers 15

on_messageMethod · 0.80
on_messageMethod · 0.80
on_messageMethod · 0.80
on_messageMethod · 0.80
on_messageMethod · 0.80
on_messageMethod · 0.80
TEST_FFunction · 0.80
on_stop_messageMethod · 0.80
on_messageMethod · 0.80
on_messageMethod · 0.80

Calls 15

set_methodMethod · 0.80
get_methodMethod · 0.80
set_interface_versionMethod · 0.80
set_message_typeMethod · 0.80
set_return_codeMethod · 0.80
set_serviceMethod · 0.45
get_serviceMethod · 0.45
set_instanceMethod · 0.45
get_instanceMethod · 0.45
set_clientMethod · 0.45
get_clientMethod · 0.45
set_sessionMethod · 0.45

Tested by 15

on_messageMethod · 0.64
on_messageMethod · 0.64
on_messageMethod · 0.64
on_messageMethod · 0.64
on_messageMethod · 0.64
on_messageMethod · 0.64
TEST_FFunction · 0.64
on_stop_messageMethod · 0.64
on_messageMethod · 0.64
on_messageMethod · 0.64