rosidl_runtime_c
master
Generate the rosidl interfaces in C.
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Members
All
Variables
Files
File List
File Members
All
g
r
Functions
g
r
Variables
Typedefs
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
include
rosidl_runtime_c
message_initialization.h
Go to the documentation of this file.
1
// Copyright 2017 Open Source Robotics Foundation, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef ROSIDL_RUNTIME_C__MESSAGE_INITIALIZATION_H_
16
#define ROSIDL_RUNTIME_C__MESSAGE_INITIALIZATION_H_
17
18
enum
rosidl_runtime_c__message_initialization
19
{
20
// Initialize all fields of the message, either with the default value
21
// (if the field has one), or with an empty value (generally 0 or an
22
// empty string).
23
ROSIDL_RUNTIME_C_MSG_INIT_ALL
,
24
// Skip initialization of all fields of the message. It is up to the user to
25
// ensure that all fields are initialized before use.
26
ROSIDL_RUNTIME_C_MSG_INIT_SKIP
,
27
// Initialize all fields of the message to an empty value (generally 0 or an
28
// empty string).
29
ROSIDL_RUNTIME_C_MSG_INIT_ZERO
,
30
// Initialize all fields of the message that have defaults; all other fields
31
// are left untouched.
32
ROSIDL_RUNTIME_C_MSG_INIT_DEFAULTS_ONLY
,
33
};
34
35
#endif // ROSIDL_RUNTIME_C__MESSAGE_INITIALIZATION_H_
ROSIDL_RUNTIME_C_MSG_INIT_ZERO
@ ROSIDL_RUNTIME_C_MSG_INIT_ZERO
Definition:
message_initialization.h:29
ROSIDL_RUNTIME_C_MSG_INIT_ALL
@ ROSIDL_RUNTIME_C_MSG_INIT_ALL
Definition:
message_initialization.h:23
ROSIDL_RUNTIME_C_MSG_INIT_SKIP
@ ROSIDL_RUNTIME_C_MSG_INIT_SKIP
Definition:
message_initialization.h:26
rosidl_runtime_c__message_initialization
rosidl_runtime_c__message_initialization
Definition:
message_initialization.h:18
ROSIDL_RUNTIME_C_MSG_INIT_DEFAULTS_ONLY
@ ROSIDL_RUNTIME_C_MSG_INIT_DEFAULTS_ONLY
Definition:
message_initialization.h:32
Generated by
1.8.17