/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_ros/msg/TestPrimitives.msg */
#ifndef TEST_ROS_MESSAGE_TESTPRIMITIVES_H
#define TEST_ROS_MESSAGE_TESTPRIMITIVES_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_ros
{
template <class ContainerAllocator>
struct TestPrimitives_ : public ros::Message
{
  typedef TestPrimitives_<ContainerAllocator> Type;

  TestPrimitives_()
  : caller_id()
  , orig_caller_id()
  , str()
  , b(0)
  , int16(0)
  , int32(0)
  , int64(0)
  , c(0)
  , uint16(0)
  , uint32(0)
  , uint64(0)
  , float32(0.0)
  , float64(0.0)
  , t()
  , d()
  {
  }

  TestPrimitives_(const ContainerAllocator& _alloc)
  : caller_id(_alloc)
  , orig_caller_id(_alloc)
  , str(_alloc)
  , b(0)
  , int16(0)
  , int32(0)
  , int64(0)
  , c(0)
  , uint16(0)
  , uint32(0)
  , uint64(0)
  , float32(0.0)
  , float64(0.0)
  , t()
  , d()
  {
  }

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _caller_id_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  caller_id;

  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _orig_caller_id_type;
  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  orig_caller_id;

  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 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 float _float32_type;
  float float32;

  typedef double _float64_type;
  double float64;

  typedef ros::Time _t_type;
  ros::Time t;

  typedef ros::Duration _d_type;
  ros::Duration d;


private:
  static const char* __s_getDataType_() { return "test_ros/TestPrimitives"; }
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 "3e70f428a22c0d26ca67f87802c8e00f"; }
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 "# Integration test message of all primitive types\n\
\n\
# caller_id of most recent node to send this message\n\
string caller_id\n\
# caller_id of the original node to send this message\n\
string orig_caller_id\n\
\n\
string str\n\
byte b\n\
int16 int16\n\
int32 int32\n\
int64 int64\n\
char c\n\
uint16 uint16\n\
uint32 uint32\n\
uint64 uint64\n\
float32 float32\n\
float64 float64\n\
time t\n\
duration d\n\
\n\
\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, caller_id);
    ros::serialization::serialize(stream, orig_caller_id);
    ros::serialization::serialize(stream, str);
    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, float32);
    ros::serialization::serialize(stream, float64);
    ros::serialization::serialize(stream, t);
    ros::serialization::serialize(stream, d);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, caller_id);
    ros::serialization::deserialize(stream, orig_caller_id);
    ros::serialization::deserialize(stream, str);
    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, float32);
    ros::serialization::deserialize(stream, float64);
    ros::serialization::deserialize(stream, t);
    ros::serialization::deserialize(stream, d);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint32_t serializationLength() const
  {
    uint32_t size = 0;
    size += ros::serialization::serializationLength(caller_id);
    size += ros::serialization::serializationLength(orig_caller_id);
    size += ros::serialization::serializationLength(str);
    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(float32);
    size += ros::serialization::serializationLength(float64);
    size += ros::serialization::serializationLength(t);
    size += ros::serialization::serializationLength(d);
    return size;
  }

  typedef boost::shared_ptr< ::test_ros::TestPrimitives_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_ros::TestPrimitives_<ContainerAllocator>  const> ConstPtr;
}; // struct TestPrimitives
typedef  ::test_ros::TestPrimitives_<std::allocator<void> > TestPrimitives;

typedef boost::shared_ptr< ::test_ros::TestPrimitives> TestPrimitivesPtr;
typedef boost::shared_ptr< ::test_ros::TestPrimitives const> TestPrimitivesConstPtr;


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

} // namespace test_ros

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_ros::TestPrimitives_<ContainerAllocator> > {
  static const char* value() 
  {
    return "3e70f428a22c0d26ca67f87802c8e00f";
  }

  static const char* value(const  ::test_ros::TestPrimitives_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0x3e70f428a22c0d26ULL;
  static const uint64_t static_value2 = 0xca67f87802c8e00fULL;
};

template<class ContainerAllocator>
struct DataType< ::test_ros::TestPrimitives_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_ros/TestPrimitives";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_ros::TestPrimitives_<ContainerAllocator> > {
  static const char* value() 
  {
    return "# Integration test message of all primitive types\n\
\n\
# caller_id of most recent node to send this message\n\
string caller_id\n\
# caller_id of the original node to send this message\n\
string orig_caller_id\n\
\n\
string str\n\
byte b\n\
int16 int16\n\
int32 int32\n\
int64 int64\n\
char c\n\
uint16 uint16\n\
uint32 uint32\n\
uint64 uint64\n\
float32 float32\n\
float64 float64\n\
time t\n\
duration d\n\
\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_ros::TestPrimitives_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.caller_id);
    stream.next(m.orig_caller_id);
    stream.next(m.str);
    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.float32);
    stream.next(m.float64);
    stream.next(m.t);
    stream.next(m.d);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_ros::TestPrimitives_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_ros::TestPrimitives_<ContainerAllocator> & v) 
  {
    s << indent << "caller_id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.caller_id);
    s << indent << "orig_caller_id: ";
    Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.orig_caller_id);
    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 << "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 << "float32: ";
    Printer<float>::stream(s, indent + "  ", v.float32);
    s << indent << "float64: ";
    Printer<double>::stream(s, indent + "  ", v.float64);
    s << indent << "t: ";
    Printer<ros::Time>::stream(s, indent + "  ", v.t);
    s << indent << "d: ";
    Printer<ros::Duration>::stream(s, indent + "  ", v.d);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROS_MESSAGE_TESTPRIMITIVES_H

