Apollo
10.0
自动驾驶开放平台
history_attributes.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2018 The Apollo Authors. All Rights Reserved.
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
17
#ifndef CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
18
#define CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
19
20
#include <cstdint>
21
22
#include "cyber/proto/qos_profile.pb.h"
23
24
namespace
apollo
{
25
namespace
cyber {
26
namespace
transport {
27
28
struct
HistoryAttributes
{
29
HistoryAttributes
()
30
:
history_policy
(proto::QosHistoryPolicy::HISTORY_KEEP_LAST),
31
depth
(1000) {}
32
HistoryAttributes
(
const
proto::QosHistoryPolicy
& qos_history_policy,
33
uint32_t history_depth)
34
:
history_policy
(qos_history_policy),
depth
(history_depth) {}
35
36
proto::QosHistoryPolicy
history_policy
;
37
uint32_t
depth
;
38
};
39
40
}
// namespace transport
41
}
// namespace cyber
42
}
// namespace apollo
43
44
#endif
// CYBER_TRANSPORT_MESSAGE_HISTORY_ATTRIBUTES_H_
apollo::cyber::proto::QosHistoryPolicy
QosHistoryPolicy
Definition
qos_profile.proto:5
apollo
class register implement
Definition
arena_queue.h:37
apollo::cyber::transport::HistoryAttributes
Definition
history_attributes.h:28
apollo::cyber::transport::HistoryAttributes::HistoryAttributes
HistoryAttributes()
Definition
history_attributes.h:29
apollo::cyber::transport::HistoryAttributes::HistoryAttributes
HistoryAttributes(const proto::QosHistoryPolicy &qos_history_policy, uint32_t history_depth)
Definition
history_attributes.h:32
apollo::cyber::transport::HistoryAttributes::depth
uint32_t depth
Definition
history_attributes.h:37
apollo::cyber::transport::HistoryAttributes::history_policy
proto::QosHistoryPolicy history_policy
Definition
history_attributes.h:36
cyber
transport
message
history_attributes.h