rosidl_runtime_cpp
master
Generate the rosidl interfaces in C++.
include
rosidl_runtime_cpp
traits.hpp
Go to the documentation of this file.
1
// Copyright 2018 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_CPP__TRAITS_HPP_
16
#define ROSIDL_RUNTIME_CPP__TRAITS_HPP_
17
18
#include <type_traits>
19
20
namespace
rosidl_generator_traits
21
{
22
23
template
<
typename
T>
24
inline
const
char
*
data_type
();
25
26
template
<
typename
T>
27
inline
const
char
*
name
();
28
29
template
<
typename
T>
30
struct
has_fixed_size
:
std::false_type
{};
31
32
template
<
typename
T>
33
struct
has_bounded_size
:
std::false_type
{};
34
35
template
<
typename
T>
36
struct
is_message
:
std::false_type
{};
37
38
template
<
typename
T>
39
struct
is_service
:
std::false_type
{};
40
41
template
<
typename
T>
42
struct
is_service_request
:
std::false_type
{};
43
44
template
<
typename
T>
45
struct
is_service_response
:
std::false_type
{};
46
47
template
<
typename
T>
48
struct
is_action
:
std::false_type
{};
49
50
template
<
typename
T>
51
struct
is_action_goal
:
std::false_type
{};
52
53
template
<
typename
T>
54
struct
is_action_result
:
std::false_type
{};
55
56
template
<
typename
T>
57
struct
is_action_feedback
:
std::false_type
{};
58
59
}
// namespace rosidl_generator_traits
60
61
#endif // ROSIDL_RUNTIME_CPP__TRAITS_HPP_
rosidl_generator_traits::data_type
const char * data_type()
std::false_type
rosidl_generator_traits::is_service
Definition:
traits.hpp:39
rosidl_generator_traits
Definition:
traits.hpp:20
rosidl_generator_traits::is_action_feedback
Definition:
traits.hpp:57
rosidl_generator_traits::name
const char * name()
rosidl_generator_traits::is_action_result
Definition:
traits.hpp:54
rosidl_generator_traits::is_action_goal
Definition:
traits.hpp:51
rosidl_generator_traits::is_message
Definition:
traits.hpp:36
rosidl_generator_traits::is_service_response
Definition:
traits.hpp:45
rosidl_generator_traits::has_fixed_size
Definition:
traits.hpp:30
rosidl_generator_traits::has_bounded_size
Definition:
traits.hpp:33
rosidl_generator_traits::is_action
Definition:
traits.hpp:48
rosidl_generator_traits::is_service_request
Definition:
traits.hpp:42
Generated by
1.8.17