/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros_comm/work/ros_comm-1.4.8/test/test_rostopic/msg/Simple.msg */
#ifndef TEST_ROSTOPIC_MESSAGE_SIMPLE_H
#define TEST_ROSTOPIC_MESSAGE_SIMPLE_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 Simple_ : public ros::Message
{
  typedef Simple_<ContainerAllocator> Type;

  Simple_()
  : b(0)
  , int16(0)
  , int32(0)
  , int64(0)
  , c(0)
  , uint16(0)
  , uint32(0)
  , uint64(0)
  , str()
  {
  }

  Simple_(const ContainerAllocator& _alloc)
  : b(0)
  , int16(0)
  , int32(0)
  , int64(0)
  , c(0)
  , uint16(0)
  , uint32(0)
  , uint64(0)
  , str(_alloc)
  {
  }

  typedef int8_t _b_type;
  int8_t b;

  typedef int16_t _int16_type;
  int16_t int16;

  typedef int32_t _int32_type;
  int32_t int32;

  typedef int64_t _int64_type;
  int64_t int64;

  typedef uint8_t _c_type;
  uint8_t c;

  typedef uint16_t _uint16_type;
  uint16_t uint16;

  typedef uint32_t _uint32_type;
  uint32_t uint32;

  typedef uint64_t _uint64_type;
  uint64_t uint64;

  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;


private:
  static const char* __s_getDataType_() { return "test_rostopic/Simple"; }
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 "c9940b1313e61fed87cd22c50742578f"; }
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 "byte b\n\
int16 int16\n\
int32 int32\n\
int64 int64\n\
char c\n\
uint16 uint16\n\
uint32 uint32\n\
uint64 uint64\n\
string str\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, b);
    ros::serialization::serialize(stream, int16);
    ros::serialization::serialize(stream, int32);
    ros::serialization::serialize(stream, int64);
    ros::serialization::serialize(stream, c);
    ros::serialization::serialize(stream, uint16);
    ros::serialization::serialize(stream, uint32);
    ros::serialization::serialize(stream, uint64);
    ros::serialization::serialize(stream, str);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, b);
    ros::serialization::deserialize(stream, int16);
    ros::serialization::deserialize(stream, int32);
    ros::serialization::deserialize(stream, int64);
    ros::serialization::deserialize(stream, c);
    ros::serialization::deserialize(stream, uint16);
    ros::serialization::deserialize(stream, uint32);
    ros::serialization::deserialize(stream, uint64);
    ros::serialization::deserialize(stream, str);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(b);
    size += ros::serialization::serializationLength(int16);
    size += ros::serialization::serializationLength(int32);
    size += ros::serialization::serializationLength(int64);
    size += ros::serialization::serializationLength(c);
    size += ros::serialization::serializationLength(uint16);
    size += ros::serialization::serializationLength(uint32);
    size += ros::serialization::serializationLength(uint64);
    size += ros::serialization::serializationLength(str);
    return size;
  }

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

typedef boost::shared_ptr< ::test_rostopic::Simple> SimplePtr;
typedef boost::shared_ptr< ::test_rostopic::Simple const> SimpleConstPtr;


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

} // namespace test_rostopic

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

  static const char* value(const  ::test_rostopic::Simple_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xc9940b1313e61fedULL;
  static const uint64_t static_value2 = 0x87cd22c50742578fULL;
};

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

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

template<class ContainerAllocator>
struct Definition< ::test_rostopic::Simple_<ContainerAllocator> > {
  static const char* value() 
  {
    return "byte b\n\
int16 int16\n\
int32 int32\n\
int64 int64\n\
char c\n\
uint16 uint16\n\
uint32 uint32\n\
uint64 uint64\n\
string str\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_rostopic::Simple_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.b);
    stream.next(m.int16);
    stream.next(m.int32);
    stream.next(m.int64);
    stream.next(m.c);
    stream.next(m.uint16);
    stream.next(m.uint32);
    stream.next(m.uint64);
    stream.next(m.str);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_rostopic::Simple_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_rostopic::Simple_<ContainerAllocator> & v) 
  {
    s << indent << "b: ";
    Printer<int8_t>::stream(s, indent + "  ", v.b);
    s << indent << "int16: ";
    Printer<int16_t>::stream(s, indent + "  ", v.int16);
    s << indent << "int32: ";
    Printer<int32_t>::stream(s, indent + "  ", v.int32);
    s << indent << "int64: ";
    Printer<int64_t>::stream(s, indent + "  ", v.int64);
    s << indent << "c: ";
    Printer<uint8_t>::stream(s, indent + "  ", v.c);
    s << indent << "uint16: ";
    Printer<uint16_t>::stream(s, indent + "  ", v.uint16);
    s << indent << "uint32: ";
    Printer<uint32_t>::stream(s, indent + "  ", v.uint32);
    s << indent << "uint64: ";
    Printer<uint64_t>::stream(s, indent + "  ", v.uint64);
    s << indent << "str: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.str);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSTOPIC_MESSAGE_SIMPLE_H

