Program Listing for File convert_decl.hpp

Return to documentation for file (/tmp/ws/src/ros1_bridge/include/ros1_bridge/convert_decl.hpp)

// Copyright 2015 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 ROS1_BRIDGE__CONVERT_DECL_HPP_
#define ROS1_BRIDGE__CONVERT_DECL_HPP_

namespace ros1_bridge
{

template<typename ROS1_T, typename ROS2_T>
void
convert_1_to_2(
  const ROS1_T & ros1_msg,
  ROS2_T & ros2_msg);

template<typename ROS1_T, typename ROS2_T>
void
convert_2_to_1(
  const ROS2_T & ros2_msg,
  ROS1_T & ros1_msg);

template<typename ROS2_T, typename STREAM_T>
void
internal_stream_translate_helper(
  STREAM_T & out_stream,
  const ROS2_T & msg);

}  // namespace ros1_bridge

#endif  // ROS1_BRIDGE__CONVERT_DECL_HPP_