/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_ros/msg/Composite.msg */
#ifndef TEST_ROS_MESSAGE_COMPOSITE_H
#define TEST_ROS_MESSAGE_COMPOSITE_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_ros/CompositeA.h"
#include "test_ros/CompositeB.h"

namespace test_ros
{
template <class ContainerAllocator>
struct Composite_ : public ros::Message
{
  typedef Composite_<ContainerAllocator> Type;

  Composite_()
  : a()
  , b()
  {
  }

  Composite_(const ContainerAllocator& _alloc)
  : a(_alloc)
  , b(_alloc)
  {
  }

  typedef  ::test_ros::CompositeA_<ContainerAllocator>  _a_type;
   ::test_ros::CompositeA_<ContainerAllocator>  a;

  typedef  ::test_ros::CompositeB_<ContainerAllocator>  _b_type;
   ::test_ros::CompositeB_<ContainerAllocator>  b;


private:
  static const char* __s_getDataType_() { return "test_ros/Composite"; }
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 "d8fb6eb869ad3956b50e8737d96dc9fa"; }
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 "# composite message. required for testing import calculation in generators\n\
CompositeA a\n\
CompositeB b\n\
\n\
================================================================================\n\
MSG: test_ros/CompositeA\n\
# This represents an orientation in free space in quaternion form.\n\
\n\
float64 x\n\
float64 y\n\
float64 z\n\
float64 w\n\
\n\
================================================================================\n\
MSG: test_ros/CompositeB\n\
# copy of geometry_msgs/Point for testing\n\
float64 x\n\
float64 y\n\
float64 z\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, a);
    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, a);
    ros::serialization::deserialize(stream, b);
    return stream.getData();
  }

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

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

typedef boost::shared_ptr< ::test_ros::Composite> CompositePtr;
typedef boost::shared_ptr< ::test_ros::Composite const> CompositeConstPtr;


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

} // namespace test_ros

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

  static const char* value(const  ::test_ros::Composite_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xd8fb6eb869ad3956ULL;
  static const uint64_t static_value2 = 0xb50e8737d96dc9faULL;
};

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

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

template<class ContainerAllocator>
struct Definition< ::test_ros::Composite_<ContainerAllocator> > {
  static const char* value() 
  {
    return "# composite message. required for testing import calculation in generators\n\
CompositeA a\n\
CompositeB b\n\
\n\
================================================================================\n\
MSG: test_ros/CompositeA\n\
# This represents an orientation in free space in quaternion form.\n\
\n\
float64 x\n\
float64 y\n\
float64 z\n\
float64 w\n\
\n\
================================================================================\n\
MSG: test_ros/CompositeB\n\
# copy of geometry_msgs/Point for testing\n\
float64 x\n\
float64 y\n\
float64 z\n\
\n\
";
  }

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

template<class ContainerAllocator> struct IsFixedSize< ::test_ros::Composite_<ContainerAllocator> > : public TrueType {};
} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_ros::Composite_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.a);
    stream.next(m.b);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_ros::Composite_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_ros::Composite_<ContainerAllocator> & v) 
  {
    s << indent << "a: ";
s << std::endl;
    Printer< ::test_ros::CompositeA_<ContainerAllocator> >::stream(s, indent + "  ", v.a);
    s << indent << "b: ";
s << std::endl;
    Printer< ::test_ros::CompositeB_<ContainerAllocator> >::stream(s, indent + "  ", v.b);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROS_MESSAGE_COMPOSITE_H

