/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_roslib/msg/FillSimple.msg */
#ifndef TEST_ROSLIB_MESSAGE_FILLSIMPLE_H
#define TEST_ROSLIB_MESSAGE_FILLSIMPLE_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_roslib
{
template <class ContainerAllocator>
struct FillSimple_ : public ros::Message
{
  typedef FillSimple_<ContainerAllocator> Type;

  FillSimple_()
  : i32(0)
  , str()
  , i32_array()
  , b(false)
  {
  }

  FillSimple_(const ContainerAllocator& _alloc)
  : i32(0)
  , str(_alloc)
  , i32_array(_alloc)
  , b(false)
  {
  }

  typedef int32_t _i32_type;
  int32_t i32;

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _str_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  str;

  typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _i32_array_type;
  std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  i32_array;

  typedef uint8_t _b_type;
  uint8_t b;


  ROSCPP_DEPRECATED uint32_t get_i32_array_size() const { return (uint32_t)i32_array.size(); }
  ROSCPP_DEPRECATED void set_i32_array_size(uint32_t size) { i32_array.resize((size_t)size); }
  ROSCPP_DEPRECATED void get_i32_array_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->i32_array; }
  ROSCPP_DEPRECATED void set_i32_array_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->i32_array = vec; }
private:
  static const char* __s_getDataType_() { return "test_roslib/FillSimple"; }
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 "da04a60d03fa22f7d301f9bd5f9a08ab"; }
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 "int32 i32\n\
string str\n\
int32[] i32_array\n\
bool b\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, i32);
    ros::serialization::serialize(stream, str);
    ros::serialization::serialize(stream, i32_array);
    ros::serialization::serialize(stream, b);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, i32);
    ros::serialization::deserialize(stream, str);
    ros::serialization::deserialize(stream, i32_array);
    ros::serialization::deserialize(stream, b);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(i32);
    size += ros::serialization::serializationLength(str);
    size += ros::serialization::serializationLength(i32_array);
    size += ros::serialization::serializationLength(b);
    return size;
  }

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

typedef boost::shared_ptr< ::test_roslib::FillSimple> FillSimplePtr;
typedef boost::shared_ptr< ::test_roslib::FillSimple const> FillSimpleConstPtr;


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

} // namespace test_roslib

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

  static const char* value(const  ::test_roslib::FillSimple_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xda04a60d03fa22f7ULL;
  static const uint64_t static_value2 = 0xd301f9bd5f9a08abULL;
};

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

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

template<class ContainerAllocator>
struct Definition< ::test_roslib::FillSimple_<ContainerAllocator> > {
  static const char* value() 
  {
    return "int32 i32\n\
string str\n\
int32[] i32_array\n\
bool b\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_roslib::FillSimple_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.i32);
    stream.next(m.str);
    stream.next(m.i32_array);
    stream.next(m.b);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_roslib::FillSimple_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_roslib::FillSimple_<ContainerAllocator> & v) 
  {
    s << indent << "i32: ";
    Printer<int32_t>::stream(s, indent + "  ", v.i32);
    s << indent << "str: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.str);
    s << indent << "i32_array[]" << std::endl;
    for (size_t i = 0; i < v.i32_array.size(); ++i)
    {
      s << indent << "  i32_array[" << i << "]: ";
      Printer<int32_t>::stream(s, indent + "  ", v.i32_array[i]);
    }
    s << indent << "b: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.b);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSLIB_MESSAGE_FILLSIMPLE_H

