blob: 4a68a54414a6bb33bf9864884d9c92f0b07e33a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef VSOMEIP_MESSAGE_HPP
#define VSOMEIP_MESSAGE_HPP
#include <memory>
#include <vsomeip/message_base.hpp>
namespace vsomeip {
class payload;
/**
*
* \defgroup vsomeip
*
* @{
*
*/
/**
* \brief Implements regular SOME/IP messages.
*
* This class extends @ref message_base by an unstructured payload. Except
* SOME/IP Service Discovery messages, all SOME/IP messages within vsomeip
* are represented by message objects.
*/
class message: virtual public message_base {
public:
virtual ~message() {}
/**
* \brief Returns a pointer to the message payload.
*/
virtual std::shared_ptr<payload> get_payload() const = 0;
/**
* \brief Set the message payload.
*/
virtual void set_payload(std::shared_ptr<payload> _payload) = 0;
};
/** @} */
} // namespace vsomeip
#endif // VSOMEIP_MESSAGE_HPP
|