/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros_comm/work/ros_comm-1.4.8/test/test_ros/msg/TestArrays.msg */
#ifndef TEST_ROS_MESSAGE_TESTARRAYS_H
#define TEST_ROS_MESSAGE_TESTARRAYS_H
#include <string>
#include <vector>
#include <ostream>
#include "ros/serialization.h"
#include "ros/builtin_message_traits.h"
#include "ros/message_operations.h"
#include "ros/message.h"
#include "ros/time.h"

#include "test_ros/TestString.h"

namespace test_ros
{
template <class ContainerAllocator>
struct TestArrays_ : public ros::Message
{
  typedef TestArrays_<ContainerAllocator> Type;

  TestArrays_()
  : caller_id()
  , orig_caller_id()
  , int32_array()
  , float32_array()
  , time_array()
  , test_string_array()
  {
  }

  TestArrays_(const ContainerAllocator& _alloc)
  : caller_id(_alloc)
  , orig_caller_id(_alloc)
  , int32_array(_alloc)
  , float32_array(_alloc)
  , time_array(_alloc)
  , test_string_array(_alloc)
  {
  }

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _caller_id_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  caller_id;

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _orig_caller_id_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  orig_caller_id;

  typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _int32_array_type;
  std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  int32_array;

  typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _float32_array_type;
  std::vector<float, typename ContainerAllocator::template rebind<float>::other >  float32_array;

  typedef std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other >  _time_array_type;
  std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other >  time_array;

  typedef std::vector< ::test_ros::TestString_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_ros::TestString_<ContainerAllocator> >::other >  _test_string_array_type;
  std::vector< ::test_ros::TestString_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_ros::TestString_<ContainerAllocator> >::other >  test_string_array;


  ROS_DEPRECATED uint32_t get_int32_array_size() const { return (uint32_t)int32_array.size(); }
  ROS_DEPRECATED void set_int32_array_size(uint32_t size) { int32_array.resize((size_t)size); }
  ROS_DEPRECATED void get_int32_array_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->int32_array; }
  ROS_DEPRECATED void set_int32_array_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->int32_array = vec; }
  ROS_DEPRECATED uint32_t get_float32_array_size() const { return (uint32_t)float32_array.size(); }
  ROS_DEPRECATED void set_float32_array_size(uint32_t size) { float32_array.resize((size_t)size); }
  ROS_DEPRECATED void get_float32_array_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->float32_array; }
  ROS_DEPRECATED void set_float32_array_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->float32_array = vec; }
  ROS_DEPRECATED uint32_t get_time_array_size() const { return (uint32_t)time_array.size(); }
  ROS_DEPRECATED void set_time_array_size(uint32_t size) { time_array.resize((size_t)size); }
  ROS_DEPRECATED void get_time_array_vec(std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > & vec) const { vec = this->time_array; }
  ROS_DEPRECATED void set_time_array_vec(const std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > & vec) { this->time_array = vec; }
  ROS_DEPRECATED uint32_t get_test_string_array_size() const { return (uint32_t)test_string_array.size(); }
  ROS_DEPRECATED void set_test_string_array_size(uint32_t size) { test_string_array.resize((size_t)size); }
  ROS_DEPRECATED void get_test_string_array_vec(std::vector< ::test_ros::TestString_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_ros::TestString_<ContainerAllocator> >::other > & vec) const { vec = this->test_string_array; }
  ROS_DEPRECATED void set_test_string_array_vec(const std::vector< ::test_ros::TestString_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_ros::TestString_<ContainerAllocator> >::other > & vec) { this->test_string_array = vec; }
private:
  static const char* __s_getDataType_() { return "test_ros/TestArrays"; }
public:
  ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }

  ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }

private:
  static const char* __s_getMD5Sum_() { return "4cc9b5e2cebe791aa3e994f5bc159eb6"; }
public:
  ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }

  ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }

private:
  static const char* __s_getMessageDefinition_() { return "# caller_id of most recent node to send this message\n\
string caller_id\n\
# caller_id of the original node to send this message\n\
string orig_caller_id\n\
\n\
int32[] int32_array\n\
float32[] float32_array\n\
time[] time_array\n\
TestString[] test_string_array\n\
# TODO: array of arrays\n\
\n\
================================================================================\n\
MSG: test_ros/TestString\n\
# Integration test message\n\
# caller_id of most recent node to send this message\n\
string caller_id\n\
# caller_id of the original node to send this message\n\
string orig_caller_id\n\
string data\n\
\n\
"; }
public:
  ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }

  ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }

  ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
  {
    ros::serialization::OStream stream(write_ptr, 1000000000);
    ros::serialization::serialize(stream, caller_id);
    ros::serialization::serialize(stream, orig_caller_id);
    ros::serialization::serialize(stream, int32_array);
    ros::serialization::serialize(stream, float32_array);
    ros::serialization::serialize(stream, time_array);
    ros::serialization::serialize(stream, test_string_array);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, caller_id);
    ros::serialization::deserialize(stream, orig_caller_id);
    ros::serialization::deserialize(stream, int32_array);
    ros::serialization::deserialize(stream, float32_array);
    ros::serialization::deserialize(stream, time_array);
    ros::serialization::deserialize(stream, test_string_array);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(caller_id);
    size += ros::serialization::serializationLength(orig_caller_id);
    size += ros::serialization::serializationLength(int32_array);
    size += ros::serialization::serializationLength(float32_array);
    size += ros::serialization::serializationLength(time_array);
    size += ros::serialization::serializationLength(test_string_array);
    return size;
  }

  typedef boost::shared_ptr< ::test_ros::TestArrays_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_ros::TestArrays_<ContainerAllocator>  const> ConstPtr;
}; // struct TestArrays
typedef  ::test_ros::TestArrays_<std::allocator<void> > TestArrays;

typedef boost::shared_ptr< ::test_ros::TestArrays> TestArraysPtr;
typedef boost::shared_ptr< ::test_ros::TestArrays const> TestArraysConstPtr;


template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const  ::test_ros::TestArrays_<ContainerAllocator> & v)
{
  ros::message_operations::Printer< ::test_ros::TestArrays_<ContainerAllocator> >::stream(s, "", v);
  return s;}

} // namespace test_ros

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_ros::TestArrays_<ContainerAllocator> > {
  static const char* value() 
  {
    return "4cc9b5e2cebe791aa3e994f5bc159eb6";
  }

  static const char* value(const  ::test_ros::TestArrays_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0x4cc9b5e2cebe791aULL;
  static const uint64_t static_value2 = 0xa3e994f5bc159eb6ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_ros::TestArrays_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_ros/TestArrays";
  }

  static const char* value(const  ::test_ros::TestArrays_<ContainerAllocator> &) { return value(); } 
};

template<class ContainerAllocator>
struct Definition< ::test_ros::TestArrays_<ContainerAllocator> > {
  static const char* value() 
  {
    return "# caller_id of most recent node to send this message\n\
string caller_id\n\
# caller_id of the original node to send this message\n\
string orig_caller_id\n\
\n\
int32[] int32_array\n\
float32[] float32_array\n\
time[] time_array\n\
TestString[] test_string_array\n\
# TODO: array of arrays\n\
\n\
================================================================================\n\
MSG: test_ros/TestString\n\
# Integration test message\n\
# caller_id of most recent node to send this message\n\
string caller_id\n\
# caller_id of the original node to send this message\n\
string orig_caller_id\n\
string data\n\
\n\
";
  }

  static const char* value(const  ::test_ros::TestArrays_<ContainerAllocator> &) { return value(); } 
};

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_ros::TestArrays_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.caller_id);
    stream.next(m.orig_caller_id);
    stream.next(m.int32_array);
    stream.next(m.float32_array);
    stream.next(m.time_array);
    stream.next(m.test_string_array);
  }

  ROS_DECLARE_ALLINONE_SERIALIZER;
}; // struct TestArrays_
} // namespace serialization
} // namespace ros

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_ros::TestArrays_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_ros::TestArrays_<ContainerAllocator> & v) 
  {
    s << indent << "caller_id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.caller_id);
    s << indent << "orig_caller_id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.orig_caller_id);
    s << indent << "int32_array[]" << std::endl;
    for (size_t i = 0; i < v.int32_array.size(); ++i)
    {
      s << indent << "  int32_array[" << i << "]: ";
      Printer<int32_t>::stream(s, indent + "  ", v.int32_array[i]);
    }
    s << indent << "float32_array[]" << std::endl;
    for (size_t i = 0; i < v.float32_array.size(); ++i)
    {
      s << indent << "  float32_array[" << i << "]: ";
      Printer<float>::stream(s, indent + "  ", v.float32_array[i]);
    }
    s << indent << "time_array[]" << std::endl;
    for (size_t i = 0; i < v.time_array.size(); ++i)
    {
      s << indent << "  time_array[" << i << "]: ";
      Printer<ros::Time>::stream(s, indent + "  ", v.time_array[i]);
    }
    s << indent << "test_string_array[]" << std::endl;
    for (size_t i = 0; i < v.test_string_array.size(); ++i)
    {
      s << indent << "  test_string_array[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::test_ros::TestString_<ContainerAllocator> >::stream(s, indent + "    ", v.test_string_array[i]);
    }
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROS_MESSAGE_TESTARRAYS_H

