Apollo 10.0
自动驾驶开放平台
types.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_COMMON_TYPES_H_
18#define CYBER_COMMON_TYPES_H_
19
20#include <cstdint>
21
22namespace apollo {
23namespace cyber {
24
25class NullType {};
26
27// Return code definition for cyber internal function return.
29 SUCC = 0,
30 FAIL = 1,
31};
32
36enum Relation : std::uint8_t {
38 DIFF_HOST, // different host
39 DIFF_PROC, // same host, but different process
40 SAME_PROC, // same process
41};
42
43static const char SRV_CHANNEL_REQ_SUFFIX[] = "__SRV__REQUEST";
44static const char SRV_CHANNEL_RES_SUFFIX[] = "__SRV__RESPONSE";
45
46} // namespace cyber
47} // namespace apollo
48
49#endif // CYBER_COMMON_TYPES_H_
Relation
Describe relation between nodes, writers/readers...
Definition types.h:36
@ NO_RELATION
Definition types.h:37
class register implement
Definition arena_queue.h:37