/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros_comm/work/ros_comm-1.4.8/test/test_rostopic/msg/Embed.msg */
#ifndef TEST_ROSTOPIC_MESSAGE_EMBED_H
#define TEST_ROSTOPIC_MESSAGE_EMBED_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"

#include "test_rostopic/Simple.h"
#include "test_rostopic/Arrays.h"

namespace test_rostopic
{
template <class ContainerAllocator>
struct Embed_ : public ros::Message
{
  typedef Embed_<ContainerAllocator> Type;

  Embed_()
  : simple()
  , arrays()
  {
  }

  Embed_(const ContainerAllocator& _alloc)
  : simple(_alloc)
  , arrays(_alloc)
  {
  }

  typedef  ::test_rostopic::Simple_<ContainerAllocator>  _simple_type;
   ::test_rostopic::Simple_<ContainerAllocator>  simple;

  typedef  ::test_rostopic::Arrays_<ContainerAllocator>  _arrays_type;
   ::test_rostopic::Arrays_<ContainerAllocator>  arrays;


private:
  static const char* __s_getDataType_() { return "test_rostopic/Embed"; }
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 "6dec891298f3675c2d964c161d28efaa"; }
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 "Simple simple\n\
Arrays arrays\n\
\n\
================================================================================\n\
MSG: test_rostopic/Simple\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\
string str\n\
\n\
================================================================================\n\
MSG: test_rostopic/Arrays\n\
int8[] int8_arr\n\
uint8[] uint8_arr\n\
int32[] int32_arr\n\
uint32[] uint32_arr\n\
string[] string_arr\n\
time[] time_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, simple);
    ros::serialization::serialize(stream, arrays);
    return stream.getData();
  }

  ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, simple);
    ros::serialization::deserialize(stream, arrays);
    return stream.getData();
  }

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

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

typedef boost::shared_ptr< ::test_rostopic::Embed> EmbedPtr;
typedef boost::shared_ptr< ::test_rostopic::Embed const> EmbedConstPtr;


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

} // namespace test_rostopic

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

  static const char* value(const  ::test_rostopic::Embed_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0x6dec891298f3675cULL;
  static const uint64_t static_value2 = 0x2d964c161d28efaaULL;
};

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

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

template<class ContainerAllocator>
struct Definition< ::test_rostopic::Embed_<ContainerAllocator> > {
  static const char* value() 
  {
    return "Simple simple\n\
Arrays arrays\n\
\n\
================================================================================\n\
MSG: test_rostopic/Simple\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\
string str\n\
\n\
================================================================================\n\
MSG: test_rostopic/Arrays\n\
int8[] int8_arr\n\
uint8[] uint8_arr\n\
int32[] int32_arr\n\
uint32[] uint32_arr\n\
string[] string_arr\n\
time[] time_arr\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_rostopic::Embed_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.simple);
    stream.next(m.arrays);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_rostopic::Embed_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_rostopic::Embed_<ContainerAllocator> & v) 
  {
    s << indent << "simple: ";
s << std::endl;
    Printer< ::test_rostopic::Simple_<ContainerAllocator> >::stream(s, indent + "  ", v.simple);
    s << indent << "arrays: ";
s << std::endl;
    Printer< ::test_rostopic::Arrays_<ContainerAllocator> >::stream(s, indent + "  ", v.arrays);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSTOPIC_MESSAGE_EMBED_H

