SetLightStatusResponse.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. // Generated by gencpp from file common_msgs/SetLightStatusResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_SETLIGHTSTATUSRESPONSE_H
  4. #define COMMON_MSGS_MESSAGE_SETLIGHTSTATUSRESPONSE_H
  5. #include <string>
  6. #include <vector>
  7. #include <memory>
  8. #include <ros/types.h>
  9. #include <ros/serialization.h>
  10. #include <ros/builtin_message_traits.h>
  11. #include <ros/message_operations.h>
  12. namespace common_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct SetLightStatusResponse_
  16. {
  17. typedef SetLightStatusResponse_<ContainerAllocator> Type;
  18. SetLightStatusResponse_()
  19. : success(false)
  20. , message() {
  21. }
  22. SetLightStatusResponse_(const ContainerAllocator& _alloc)
  23. : success(false)
  24. , message(_alloc) {
  25. (void)_alloc;
  26. }
  27. typedef uint8_t _success_type;
  28. _success_type success;
  29. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _message_type;
  30. _message_type message;
  31. typedef boost::shared_ptr< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> > Ptr;
  32. typedef boost::shared_ptr< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> const> ConstPtr;
  33. }; // struct SetLightStatusResponse_
  34. typedef ::common_msgs::SetLightStatusResponse_<std::allocator<void> > SetLightStatusResponse;
  35. typedef boost::shared_ptr< ::common_msgs::SetLightStatusResponse > SetLightStatusResponsePtr;
  36. typedef boost::shared_ptr< ::common_msgs::SetLightStatusResponse const> SetLightStatusResponseConstPtr;
  37. // constants requiring out of line definition
  38. template<typename ContainerAllocator>
  39. std::ostream& operator<<(std::ostream& s, const ::common_msgs::SetLightStatusResponse_<ContainerAllocator> & v)
  40. {
  41. ros::message_operations::Printer< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >::stream(s, "", v);
  42. return s;
  43. }
  44. template<typename ContainerAllocator1, typename ContainerAllocator2>
  45. bool operator==(const ::common_msgs::SetLightStatusResponse_<ContainerAllocator1> & lhs, const ::common_msgs::SetLightStatusResponse_<ContainerAllocator2> & rhs)
  46. {
  47. return lhs.success == rhs.success &&
  48. lhs.message == rhs.message;
  49. }
  50. template<typename ContainerAllocator1, typename ContainerAllocator2>
  51. bool operator!=(const ::common_msgs::SetLightStatusResponse_<ContainerAllocator1> & lhs, const ::common_msgs::SetLightStatusResponse_<ContainerAllocator2> & rhs)
  52. {
  53. return !(lhs == rhs);
  54. }
  55. } // namespace common_msgs
  56. namespace ros
  57. {
  58. namespace message_traits
  59. {
  60. template <class ContainerAllocator>
  61. struct IsFixedSize< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  62. : FalseType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsFixedSize< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> const>
  66. : FalseType
  67. { };
  68. template <class ContainerAllocator>
  69. struct IsMessage< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  70. : TrueType
  71. { };
  72. template <class ContainerAllocator>
  73. struct IsMessage< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> const>
  74. : TrueType
  75. { };
  76. template <class ContainerAllocator>
  77. struct HasHeader< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  78. : FalseType
  79. { };
  80. template <class ContainerAllocator>
  81. struct HasHeader< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> const>
  82. : FalseType
  83. { };
  84. template<class ContainerAllocator>
  85. struct MD5Sum< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  86. {
  87. static const char* value()
  88. {
  89. return "937c9679a518e3a18d831e57125ea522";
  90. }
  91. static const char* value(const ::common_msgs::SetLightStatusResponse_<ContainerAllocator>&) { return value(); }
  92. static const uint64_t static_value1 = 0x937c9679a518e3a1ULL;
  93. static const uint64_t static_value2 = 0x8d831e57125ea522ULL;
  94. };
  95. template<class ContainerAllocator>
  96. struct DataType< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  97. {
  98. static const char* value()
  99. {
  100. return "common_msgs/SetLightStatusResponse";
  101. }
  102. static const char* value(const ::common_msgs::SetLightStatusResponse_<ContainerAllocator>&) { return value(); }
  103. };
  104. template<class ContainerAllocator>
  105. struct Definition< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  106. {
  107. static const char* value()
  108. {
  109. return "bool success\n"
  110. "string message\n"
  111. ;
  112. }
  113. static const char* value(const ::common_msgs::SetLightStatusResponse_<ContainerAllocator>&) { return value(); }
  114. };
  115. } // namespace message_traits
  116. } // namespace ros
  117. namespace ros
  118. {
  119. namespace serialization
  120. {
  121. template<class ContainerAllocator> struct Serializer< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  122. {
  123. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  124. {
  125. stream.next(m.success);
  126. stream.next(m.message);
  127. }
  128. ROS_DECLARE_ALLINONE_SERIALIZER
  129. }; // struct SetLightStatusResponse_
  130. } // namespace serialization
  131. } // namespace ros
  132. namespace ros
  133. {
  134. namespace message_operations
  135. {
  136. template<class ContainerAllocator>
  137. struct Printer< ::common_msgs::SetLightStatusResponse_<ContainerAllocator> >
  138. {
  139. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::SetLightStatusResponse_<ContainerAllocator>& v)
  140. {
  141. s << indent << "success: ";
  142. Printer<uint8_t>::stream(s, indent + " ", v.success);
  143. s << indent << "message: ";
  144. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.message);
  145. }
  146. };
  147. } // namespace message_operations
  148. } // namespace ros
  149. #endif // COMMON_MSGS_MESSAGE_SETLIGHTSTATUSRESPONSE_H