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