Program Listing for File message_introspection.hpp
↰ Return to documentation for file (include/rosidl_typesupport_introspection_cpp/message_introspection.hpp
)
// Copyright 2014 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef ROSIDL_TYPESUPPORT_INTROSPECTION_CPP__MESSAGE_INTROSPECTION_HPP_
#define ROSIDL_TYPESUPPORT_INTROSPECTION_CPP__MESSAGE_INTROSPECTION_HPP_
#include <cstddef>
#include <cstdint>
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_runtime_c/type_hash.h"
#include "rosidl_runtime_cpp/message_initialization.hpp"
#include "rosidl_typesupport_introspection_cpp/visibility_control.h"
namespace rosidl_typesupport_introspection_cpp
{
typedef struct ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC MessageMember_s
{
const char * name_;
uint8_t type_id_;
size_t string_upper_bound_;
const rosidl_message_type_support_t * members_;
bool is_key_;
bool is_array_;
size_t array_size_;
bool is_upper_bound_;
uint32_t offset_;
const void * default_value_;
size_t (* size_function)(const void *);
const void * (*get_const_function)(const void *, size_t index);
void * (*get_function)(void *, size_t index);
void (* fetch_function)(const void *, size_t index, void *);
void (* assign_function)(void *, size_t index, const void *);
void (* resize_function)(void *, size_t size);
} MessageMember;
typedef struct ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_PUBLIC MessageMembers_s
{
const char * message_namespace_;
const char * message_name_;
uint32_t member_count_;
size_t size_of_;
bool has_any_key_member_;
const MessageMember * members_;
void (* init_function)(void *, rosidl_runtime_cpp::MessageInitialization);
void (* fini_function)(void *);
} MessageMembers;
} // namespace rosidl_typesupport_introspection_cpp
#endif // ROSIDL_TYPESUPPORT_INTROSPECTION_CPP__MESSAGE_INTROSPECTION_HPP_