/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_roslib/msg/ArrayOfMsgs.msg */
#ifndef TEST_ROSLIB_MESSAGE_ARRAYOFMSGS_H
#define TEST_ROSLIB_MESSAGE_ARRAYOFMSGS_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 "std_msgs/String.h"
#include "std_msgs/Time.h"
#include "std_msgs/MultiArrayLayout.h"

namespace test_roslib
{
template <class ContainerAllocator>
struct ArrayOfMsgs_ : public ros::Message
{
  typedef ArrayOfMsgs_<ContainerAllocator> Type;

  ArrayOfMsgs_()
  : strings()
  , times()
  , muls()
  {
  }

  ArrayOfMsgs_(const ContainerAllocator& _alloc)
  : strings(_alloc)
  , times(_alloc)
  , muls(_alloc)
  {
  }

  typedef std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other >  _strings_type;
  std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other >  strings;

  typedef std::vector< ::std_msgs::Time_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Time_<ContainerAllocator> >::other >  _times_type;
  std::vector< ::std_msgs::Time_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Time_<ContainerAllocator> >::other >  times;

  typedef std::vector< ::std_msgs::MultiArrayLayout_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >::other >  _muls_type;
  std::vector< ::std_msgs::MultiArrayLayout_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >::other >  muls;


  ROSCPP_DEPRECATED uint32_t get_strings_size() const { return (uint32_t)strings.size(); }
  ROSCPP_DEPRECATED void set_strings_size(uint32_t size) { strings.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_strings_vec(std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other > & vec) const { vec = this->strings; }
  ROSCPP_DEPRECATED void set_strings_vec(const std::vector< ::std_msgs::String_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::String_<ContainerAllocator> >::other > & vec) { this->strings = vec; }
  ROSCPP_DEPRECATED uint32_t get_times_size() const { return (uint32_t)times.size(); }
  ROSCPP_DEPRECATED void set_times_size(uint32_t size) { times.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_times_vec(std::vector< ::std_msgs::Time_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Time_<ContainerAllocator> >::other > & vec) const { vec = this->times; }
  ROSCPP_DEPRECATED void set_times_vec(const std::vector< ::std_msgs::Time_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Time_<ContainerAllocator> >::other > & vec) { this->times = vec; }
  ROSCPP_DEPRECATED uint32_t get_muls_size() const { return (uint32_t)muls.size(); }
  ROSCPP_DEPRECATED void set_muls_size(uint32_t size) { muls.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_muls_vec(std::vector< ::std_msgs::MultiArrayLayout_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >::other > & vec) const { vec = this->muls; }
  ROSCPP_DEPRECATED void set_muls_vec(const std::vector< ::std_msgs::MultiArrayLayout_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >::other > & vec) { this->muls = vec; }
private:
  static const char* __s_getDataType_() { return "test_roslib/ArrayOfMsgs"; }
public:
  ROSCPP_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }

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

private:
  static const char* __s_getMD5Sum_() { return "1f4cf3ffabe2555a0cfe19c974f01a01"; }
public:
  ROSCPP_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }

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

private:
  static const char* __s_getMessageDefinition_() { return "std_msgs/String[] strings\n\
std_msgs/Time[] times\n\
std_msgs/MultiArrayLayout[] muls\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\n\
\n\
================================================================================\n\
MSG: std_msgs/Time\n\
time data\n\
\n\
================================================================================\n\
MSG: std_msgs/MultiArrayLayout\n\
# The multiarray declares a generic multi-dimensional array of a\n\
# particular data type.  Dimensions are ordered from outer most\n\
# to inner most.\n\
\n\
MultiArrayDimension[] dim # Array of dimension properties\n\
uint32 data_offset        # padding bytes at front of data\n\
\n\
# Accessors should ALWAYS be written in terms of dimension stride\n\
# and specified outer-most dimension first.\n\
# \n\
# multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
#\n\
# A standard, 3-channel 640x480 image with interleaved color channels\n\
# would be specified as:\n\
#\n\
# dim[0].label  = \"height\"\n\
# dim[0].size   = 480\n\
# dim[0].stride = 3*640*480 = 921600  (note dim[0] stride is just size of image)\n\
# dim[1].label  = \"width\"\n\
# dim[1].size   = 640\n\
# dim[1].stride = 3*640 = 1920\n\
# dim[2].label  = \"channel\"\n\
# dim[2].size   = 3\n\
# dim[2].stride = 3\n\
#\n\
# multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
================================================================================\n\
MSG: std_msgs/MultiArrayDimension\n\
string label   # label of given dimension\n\
uint32 size    # size of given dimension (in type units)\n\
uint32 stride  # stride of given dimension\n\
"; }
public:
  ROSCPP_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }

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

  ROSCPP_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
  {
    ros::serialization::OStream stream(write_ptr, 1000000000);
    ros::serialization::serialize(stream, strings);
    ros::serialization::serialize(stream, times);
    ros::serialization::serialize(stream, muls);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, strings);
    ros::serialization::deserialize(stream, times);
    ros::serialization::deserialize(stream, muls);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(strings);
    size += ros::serialization::serializationLength(times);
    size += ros::serialization::serializationLength(muls);
    return size;
  }

  typedef boost::shared_ptr< ::test_roslib::ArrayOfMsgs_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_roslib::ArrayOfMsgs_<ContainerAllocator>  const> ConstPtr;
}; // struct ArrayOfMsgs
typedef  ::test_roslib::ArrayOfMsgs_<std::allocator<void> > ArrayOfMsgs;

typedef boost::shared_ptr< ::test_roslib::ArrayOfMsgs> ArrayOfMsgsPtr;
typedef boost::shared_ptr< ::test_roslib::ArrayOfMsgs const> ArrayOfMsgsConstPtr;


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

} // namespace test_roslib

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_roslib::ArrayOfMsgs_<ContainerAllocator> > {
  static const char* value() 
  {
    return "1f4cf3ffabe2555a0cfe19c974f01a01";
  }

  static const char* value(const  ::test_roslib::ArrayOfMsgs_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0x1f4cf3ffabe2555aULL;
  static const uint64_t static_value2 = 0x0cfe19c974f01a01ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_roslib::ArrayOfMsgs_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_roslib/ArrayOfMsgs";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_roslib::ArrayOfMsgs_<ContainerAllocator> > {
  static const char* value() 
  {
    return "std_msgs/String[] strings\n\
std_msgs/Time[] times\n\
std_msgs/MultiArrayLayout[] muls\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\n\
\n\
================================================================================\n\
MSG: std_msgs/Time\n\
time data\n\
\n\
================================================================================\n\
MSG: std_msgs/MultiArrayLayout\n\
# The multiarray declares a generic multi-dimensional array of a\n\
# particular data type.  Dimensions are ordered from outer most\n\
# to inner most.\n\
\n\
MultiArrayDimension[] dim # Array of dimension properties\n\
uint32 data_offset        # padding bytes at front of data\n\
\n\
# Accessors should ALWAYS be written in terms of dimension stride\n\
# and specified outer-most dimension first.\n\
# \n\
# multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\
#\n\
# A standard, 3-channel 640x480 image with interleaved color channels\n\
# would be specified as:\n\
#\n\
# dim[0].label  = \"height\"\n\
# dim[0].size   = 480\n\
# dim[0].stride = 3*640*480 = 921600  (note dim[0] stride is just size of image)\n\
# dim[1].label  = \"width\"\n\
# dim[1].size   = 640\n\
# dim[1].stride = 3*640 = 1920\n\
# dim[2].label  = \"channel\"\n\
# dim[2].size   = 3\n\
# dim[2].stride = 3\n\
#\n\
# multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\
================================================================================\n\
MSG: std_msgs/MultiArrayDimension\n\
string label   # label of given dimension\n\
uint32 size    # size of given dimension (in type units)\n\
uint32 stride  # stride of given dimension\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_roslib::ArrayOfMsgs_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.strings);
    stream.next(m.times);
    stream.next(m.muls);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_roslib::ArrayOfMsgs_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_roslib::ArrayOfMsgs_<ContainerAllocator> & v) 
  {
    s << indent << "strings[]" << std::endl;
    for (size_t i = 0; i < v.strings.size(); ++i)
    {
      s << indent << "  strings[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + "    ", v.strings[i]);
    }
    s << indent << "times[]" << std::endl;
    for (size_t i = 0; i < v.times.size(); ++i)
    {
      s << indent << "  times[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::std_msgs::Time_<ContainerAllocator> >::stream(s, indent + "    ", v.times[i]);
    }
    s << indent << "muls[]" << std::endl;
    for (size_t i = 0; i < v.muls.size(); ++i)
    {
      s << indent << "  muls[" << i << "]: ";
      s << std::endl;
      s << indent;
      Printer< ::std_msgs::MultiArrayLayout_<ContainerAllocator> >::stream(s, indent + "    ", v.muls[i]);
    }
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSLIB_MESSAGE_ARRAYOFMSGS_H

