/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros_comm/work/ros_comm-1.4.8/test/test_rostopic/msg/Arrays.msg */
#ifndef TEST_ROSTOPIC_MESSAGE_ARRAYS_H
#define TEST_ROSTOPIC_MESSAGE_ARRAYS_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"


namespace test_rostopic
{
template <class ContainerAllocator>
struct Arrays_ : public ros::Message
{
  typedef Arrays_<ContainerAllocator> Type;

  Arrays_()
  : int8_arr()
  , uint8_arr()
  , int32_arr()
  , uint32_arr()
  , string_arr()
  , time_arr()
  {
  }

  Arrays_(const ContainerAllocator& _alloc)
  : int8_arr(_alloc)
  , uint8_arr(_alloc)
  , int32_arr(_alloc)
  , uint32_arr(_alloc)
  , string_arr(_alloc)
  , time_arr(_alloc)
  {
  }

  typedef std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other >  _int8_arr_type;
  std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other >  int8_arr;

  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _uint8_arr_type;
  std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  uint8_arr;

  typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _int32_arr_type;
  std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  int32_arr;

  typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other >  _uint32_arr_type;
  std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other >  uint32_arr;

  typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _string_arr_type;
  std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  string_arr;

  typedef std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other >  _time_arr_type;
  std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other >  time_arr;


  ROS_DEPRECATED uint32_t get_int8_arr_size() const { return (uint32_t)int8_arr.size(); }
  ROS_DEPRECATED void set_int8_arr_size(uint32_t size) { int8_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_int8_arr_vec(std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) const { vec = this->int8_arr; }
  ROS_DEPRECATED void set_int8_arr_vec(const std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > & vec) { this->int8_arr = vec; }
  ROS_DEPRECATED uint32_t get_uint8_arr_size() const { return (uint32_t)uint8_arr.size(); }
  ROS_DEPRECATED void set_uint8_arr_size(uint32_t size) { uint8_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_uint8_arr_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->uint8_arr; }
  ROS_DEPRECATED void set_uint8_arr_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->uint8_arr = vec; }
  ROS_DEPRECATED uint32_t get_int32_arr_size() const { return (uint32_t)int32_arr.size(); }
  ROS_DEPRECATED void set_int32_arr_size(uint32_t size) { int32_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_int32_arr_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->int32_arr; }
  ROS_DEPRECATED void set_int32_arr_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->int32_arr = vec; }
  ROS_DEPRECATED uint32_t get_uint32_arr_size() const { return (uint32_t)uint32_arr.size(); }
  ROS_DEPRECATED void set_uint32_arr_size(uint32_t size) { uint32_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_uint32_arr_vec(std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) const { vec = this->uint32_arr; }
  ROS_DEPRECATED void set_uint32_arr_vec(const std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > & vec) { this->uint32_arr = vec; }
  ROS_DEPRECATED uint32_t get_string_arr_size() const { return (uint32_t)string_arr.size(); }
  ROS_DEPRECATED void set_string_arr_size(uint32_t size) { string_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_string_arr_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->string_arr; }
  ROS_DEPRECATED void set_string_arr_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->string_arr = vec; }
  ROS_DEPRECATED uint32_t get_time_arr_size() const { return (uint32_t)time_arr.size(); }
  ROS_DEPRECATED void set_time_arr_size(uint32_t size) { time_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_time_arr_vec(std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > & vec) const { vec = this->time_arr; }
  ROS_DEPRECATED void set_time_arr_vec(const std::vector<ros::Time, typename ContainerAllocator::template rebind<ros::Time>::other > & vec) { this->time_arr = vec; }
private:
  static const char* __s_getDataType_() { return "test_rostopic/Arrays"; }
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 "c5a1f18379b10bdd4df210944f6007a4"; }
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 "int8[] int8_arr\n\
uint8[] uint8_arr\n\
int32[] int32_arr\n\
uint32[] uint32_arr\n\
string[] string_arr\n\
time[] time_arr\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, int8_arr);
    ros::serialization::serialize(stream, uint8_arr);
    ros::serialization::serialize(stream, int32_arr);
    ros::serialization::serialize(stream, uint32_arr);
    ros::serialization::serialize(stream, string_arr);
    ros::serialization::serialize(stream, time_arr);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, int8_arr);
    ros::serialization::deserialize(stream, uint8_arr);
    ros::serialization::deserialize(stream, int32_arr);
    ros::serialization::deserialize(stream, uint32_arr);
    ros::serialization::deserialize(stream, string_arr);
    ros::serialization::deserialize(stream, time_arr);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(int8_arr);
    size += ros::serialization::serializationLength(uint8_arr);
    size += ros::serialization::serializationLength(int32_arr);
    size += ros::serialization::serializationLength(uint32_arr);
    size += ros::serialization::serializationLength(string_arr);
    size += ros::serialization::serializationLength(time_arr);
    return size;
  }

  typedef boost::shared_ptr< ::test_rostopic::Arrays_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_rostopic::Arrays_<ContainerAllocator>  const> ConstPtr;
}; // struct Arrays
typedef  ::test_rostopic::Arrays_<std::allocator<void> > Arrays;

typedef boost::shared_ptr< ::test_rostopic::Arrays> ArraysPtr;
typedef boost::shared_ptr< ::test_rostopic::Arrays const> ArraysConstPtr;


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

} // namespace test_rostopic

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_rostopic::Arrays_<ContainerAllocator> > {
  static const char* value() 
  {
    return "c5a1f18379b10bdd4df210944f6007a4";
  }

  static const char* value(const  ::test_rostopic::Arrays_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xc5a1f18379b10bddULL;
  static const uint64_t static_value2 = 0x4df210944f6007a4ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_rostopic::Arrays_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_rostopic/Arrays";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_rostopic::Arrays_<ContainerAllocator> > {
  static const char* value() 
  {
    return "int8[] int8_arr\n\
uint8[] uint8_arr\n\
int32[] int32_arr\n\
uint32[] uint32_arr\n\
string[] string_arr\n\
time[] time_arr\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_rostopic::Arrays_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.int8_arr);
    stream.next(m.uint8_arr);
    stream.next(m.int32_arr);
    stream.next(m.uint32_arr);
    stream.next(m.string_arr);
    stream.next(m.time_arr);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_rostopic::Arrays_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_rostopic::Arrays_<ContainerAllocator> & v) 
  {
    s << indent << "int8_arr[]" << std::endl;
    for (size_t i = 0; i < v.int8_arr.size(); ++i)
    {
      s << indent << "  int8_arr[" << i << "]: ";
      Printer<int8_t>::stream(s, indent + "  ", v.int8_arr[i]);
    }
    s << indent << "uint8_arr[]" << std::endl;
    for (size_t i = 0; i < v.uint8_arr.size(); ++i)
    {
      s << indent << "  uint8_arr[" << i << "]: ";
      Printer<uint8_t>::stream(s, indent + "  ", v.uint8_arr[i]);
    }
    s << indent << "int32_arr[]" << std::endl;
    for (size_t i = 0; i < v.int32_arr.size(); ++i)
    {
      s << indent << "  int32_arr[" << i << "]: ";
      Printer<int32_t>::stream(s, indent + "  ", v.int32_arr[i]);
    }
    s << indent << "uint32_arr[]" << std::endl;
    for (size_t i = 0; i < v.uint32_arr.size(); ++i)
    {
      s << indent << "  uint32_arr[" << i << "]: ";
      Printer<uint32_t>::stream(s, indent + "  ", v.uint32_arr[i]);
    }
    s << indent << "string_arr[]" << std::endl;
    for (size_t i = 0; i < v.string_arr.size(); ++i)
    {
      s << indent << "  string_arr[" << i << "]: ";
      Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.string_arr[i]);
    }
    s << indent << "time_arr[]" << std::endl;
    for (size_t i = 0; i < v.time_arr.size(); ++i)
    {
      s << indent << "  time_arr[" << i << "]: ";
      Printer<ros::Time>::stream(s, indent + "  ", v.time_arr[i]);
    }
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSTOPIC_MESSAGE_ARRAYS_H

