/* Auto-generated by genmsg_cpp for file /work/a/ports/devel/ros/work/ros/test/test_rosmsg/msg/RosmsgC.msg */
#ifndef TEST_ROSMSG_MESSAGE_ROSMSGC_H
#define TEST_ROSMSG_MESSAGE_ROSMSGC_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 "std_msgs/String.h"
#include "std_msgs/String.h"

namespace test_rosmsg
{
template <class ContainerAllocator>
struct RosmsgC_ : public ros::Message
{
  typedef RosmsgC_<ContainerAllocator> Type;

  RosmsgC_()
  : s1()
  , s2()
  {
  }

  RosmsgC_(const ContainerAllocator& _alloc)
  : s1(_alloc)
  , s2(_alloc)
  {
  }

  typedef  ::std_msgs::String_<ContainerAllocator>  _s1_type;
   ::std_msgs::String_<ContainerAllocator>  s1;

  typedef  ::std_msgs::String_<ContainerAllocator>  _s2_type;
   ::std_msgs::String_<ContainerAllocator>  s2;


private:
  static const char* __s_getDataType_() { return "test_rosmsg/RosmsgC"; }
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 "cc91a7e3c1498150f3554cbcab2800d2"; }
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 "std_msgs/String s1\n\
std_msgs/String s2\n\
\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\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, s1);
    ros::serialization::serialize(stream, s2);
    return stream.getData();
  }

  ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
  {
    ros::serialization::IStream stream(read_ptr, 1000000000);
    ros::serialization::deserialize(stream, s1);
    ros::serialization::deserialize(stream, s2);
    return stream.getData();
  }

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

  typedef boost::shared_ptr< ::test_rosmsg::RosmsgC_<ContainerAllocator> > Ptr;
  typedef boost::shared_ptr< ::test_rosmsg::RosmsgC_<ContainerAllocator>  const> ConstPtr;
}; // struct RosmsgC
typedef  ::test_rosmsg::RosmsgC_<std::allocator<void> > RosmsgC;

typedef boost::shared_ptr< ::test_rosmsg::RosmsgC> RosmsgCPtr;
typedef boost::shared_ptr< ::test_rosmsg::RosmsgC const> RosmsgCConstPtr;


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

} // namespace test_rosmsg

namespace ros
{
namespace message_traits
{
template<class ContainerAllocator>
struct MD5Sum< ::test_rosmsg::RosmsgC_<ContainerAllocator> > {
  static const char* value() 
  {
    return "cc91a7e3c1498150f3554cbcab2800d2";
  }

  static const char* value(const  ::test_rosmsg::RosmsgC_<ContainerAllocator> &) { return value(); } 
  static const uint64_t static_value1 = 0xcc91a7e3c1498150ULL;
  static const uint64_t static_value2 = 0xf3554cbcab2800d2ULL;
};

template<class ContainerAllocator>
struct DataType< ::test_rosmsg::RosmsgC_<ContainerAllocator> > {
  static const char* value() 
  {
    return "test_rosmsg/RosmsgC";
  }

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

template<class ContainerAllocator>
struct Definition< ::test_rosmsg::RosmsgC_<ContainerAllocator> > {
  static const char* value() 
  {
    return "std_msgs/String s1\n\
std_msgs/String s2\n\
\n\
================================================================================\n\
MSG: std_msgs/String\n\
string data\n\
\n\
";
  }

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

} // namespace message_traits
} // namespace ros

namespace ros
{
namespace serialization
{

template<class ContainerAllocator> struct Serializer< ::test_rosmsg::RosmsgC_<ContainerAllocator> >
{
  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  {
    stream.next(m.s1);
    stream.next(m.s2);
  }

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

namespace ros
{
namespace message_operations
{

template<class ContainerAllocator>
struct Printer< ::test_rosmsg::RosmsgC_<ContainerAllocator> >
{
  template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::test_rosmsg::RosmsgC_<ContainerAllocator> & v) 
  {
    s << indent << "s1: ";
s << std::endl;
    Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + "  ", v.s1);
    s << indent << "s2: ";
s << std::endl;
    Printer< ::std_msgs::String_<ContainerAllocator> >::stream(s, indent + "  ", v.s2);
  }
};


} // namespace message_operations
} // namespace ros

#endif // TEST_ROSMSG_MESSAGE_ROSMSGC_H

