/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros_comm/work/ros_comm-1.4.8/test/perf_roscpp/msg/ThroughputMessage.msg */
#ifndef PERF_ROSCPP_MESSAGE_THROUGHPUTMESSAGE_H
#define PERF_ROSCPP_MESSAGE_THROUGHPUTMESSAGE_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 perf_roscpp
{
template <class ContainerAllocator>
struct ThroughputMessage_ : public ros::Message
{
  typedef ThroughputMessage_<ContainerAllocator> Type;

  ThroughputMessage_()
  : array()
  {
  }

  ThroughputMessage_(const ContainerAllocator& _alloc)
  : array(_alloc)
  {
  }

  typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _array_type;
  std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  array;


  ROS_DEPRECATED uint32_t get_array_size() const { return (uint32_t)array.size(); }
  ROS_DEPRECATED void set_array_size(uint32_t size) { array.resize((size_t)size); }
  ROS_DEPRECATED void get_array_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->array; }
  ROS_DEPRECATED void set_array_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->array = vec; }
private:
  static const char* __s_getDataType_() { return "perf_roscpp/ThroughputMessage"; }
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 "dda33390139e301b6c212139192418ca"; }
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 "uint8[] array\n\
\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, 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, array);
    return stream.getData();
  }

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

  typedef boost::shared_ptr< ::perf_roscpp::ThroughputMessage_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::perf_roscpp::ThroughputMessage_<ContainerAllocator>  const> ConstPtr;
}; // struct ThroughputMessage
typedef  ::perf_roscpp::ThroughputMessage_<std::allocator<void> > ThroughputMessage;

typedef boost::shared_ptr< ::perf_roscpp::ThroughputMessage> ThroughputMessagePtr;
typedef boost::shared_ptr< ::perf_roscpp::ThroughputMessage const> ThroughputMessageConstPtr;


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

} // namespace perf_roscpp

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::perf_roscpp::ThroughputMessage_<ContainerAllocator> > {
  static const char* value() 
  {
    return "dda33390139e301b6c212139192418ca";
  }

  static const char* value(const  ::perf_roscpp::ThroughputMessage_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xdda33390139e301bULL;
  static const uint64_t static_value2 = 0x6c212139192418caULL;
};

template<class ContainerAllocator>
struct DataType< ::perf_roscpp::ThroughputMessage_<ContainerAllocator> > {
  static const char* value() 
  {
    return "perf_roscpp/ThroughputMessage";
  }

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

template<class ContainerAllocator>
struct Definition< ::perf_roscpp::ThroughputMessage_<ContainerAllocator> > {
  static const char* value() 
  {
    return "uint8[] array\n\
\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::perf_roscpp::ThroughputMessage_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.array);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::perf_roscpp::ThroughputMessage_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::perf_roscpp::ThroughputMessage_<ContainerAllocator> & v) 
  {
    s << indent << "array[]" << std::endl;
    for (size_t i = 0; i < v.array.size(); ++i)
    {
      s << indent << "  array[" << i << "]: ";
      Printer<uint8_t>::stream(s, indent + "  ", v.array[i]);
    }
  }
};


} // namespace message_operations
} // namespace ros

#endif // PERF_ROSCPP_MESSAGE_THROUGHPUTMESSAGE_H

