/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros_comm/work/ros_comm-1.4.8/test/test_roscpp/msg/TestArray.msg */
#ifndef TEST_ROSCPP_MESSAGE_TESTARRAY_H
#define TEST_ROSCPP_MESSAGE_TESTARRAY_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_roscpp
{
template <class ContainerAllocator>
struct TestArray_ : public ros::Message
{
  typedef TestArray_<ContainerAllocator> Type;

  TestArray_()
  : counter(0)
  , float_arr()
  {
  }

  TestArray_(const ContainerAllocator& _alloc)
  : counter(0)
  , float_arr(_alloc)
  {
  }

  typedef int32_t _counter_type;
  int32_t counter;

  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _float_arr_type;
  std::vector<double, typename ContainerAllocator::template rebind<double>::other >  float_arr;


  ROS_DEPRECATED uint32_t get_float_arr_size() const { return (uint32_t)float_arr.size(); }
  ROS_DEPRECATED void set_float_arr_size(uint32_t size) { float_arr.resize((size_t)size); }
  ROS_DEPRECATED void get_float_arr_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->float_arr; }
  ROS_DEPRECATED void set_float_arr_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->float_arr = vec; }
private:
  static const char* __s_getDataType_() { return "test_roscpp/TestArray"; }
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 "f7c2f87680985b118316f81f28b4cfd5"; }
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 "int32 counter\n\
float64[] float_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, counter);
    ros::serialization::serialize(stream, float_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, counter);
    ros::serialization::deserialize(stream, float_arr);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(counter);
    size += ros::serialization::serializationLength(float_arr);
    return size;
  }

  typedef boost::shared_ptr< ::test_roscpp::TestArray_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_roscpp::TestArray_<ContainerAllocator>  const> ConstPtr;
}; // struct TestArray
typedef  ::test_roscpp::TestArray_<std::allocator<void> > TestArray;

typedef boost::shared_ptr< ::test_roscpp::TestArray> TestArrayPtr;
typedef boost::shared_ptr< ::test_roscpp::TestArray const> TestArrayConstPtr;


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

} // namespace test_roscpp

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_roscpp::TestArray_<ContainerAllocator> > {
  static const char* value() 
  {
    return "f7c2f87680985b118316f81f28b4cfd5";
  }

  static const char* value(const  ::test_roscpp::TestArray_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xf7c2f87680985b11ULL;
  static const uint64_t static_value2 = 0x8316f81f28b4cfd5ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_roscpp::TestArray_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_roscpp/TestArray";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_roscpp::TestArray_<ContainerAllocator> > {
  static const char* value() 
  {
    return "int32 counter\n\
float64[] float_arr\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_roscpp::TestArray_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.counter);
    stream.next(m.float_arr);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_roscpp::TestArray_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_roscpp::TestArray_<ContainerAllocator> & v) 
  {
    s << indent << "counter: ";
    Printer<int32_t>::stream(s, indent + "  ", v.counter);
    s << indent << "float_arr[]" << std::endl;
    for (size_t i = 0; i < v.float_arr.size(); ++i)
    {
      s << indent << "  float_arr[" << i << "]: ";
      Printer<double>::stream(s, indent + "  ", v.float_arr[i]);
    }
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSCPP_MESSAGE_TESTARRAY_H

