ScanWifiResponse.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. // Generated by gencpp from file common_msgs/ScanWifiResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_SCANWIFIRESPONSE_H
  4. #define COMMON_MSGS_MESSAGE_SCANWIFIRESPONSE_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. #include <common_msgs/WifiInfo.h>
  13. namespace common_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct ScanWifiResponse_
  17. {
  18. typedef ScanWifiResponse_<ContainerAllocator> Type;
  19. ScanWifiResponse_()
  20. : wifi_list() {
  21. }
  22. ScanWifiResponse_(const ContainerAllocator& _alloc)
  23. : wifi_list(_alloc) {
  24. (void)_alloc;
  25. }
  26. typedef std::vector< ::common_msgs::WifiInfo_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::common_msgs::WifiInfo_<ContainerAllocator> >> _wifi_list_type;
  27. _wifi_list_type wifi_list;
  28. typedef boost::shared_ptr< ::common_msgs::ScanWifiResponse_<ContainerAllocator> > Ptr;
  29. typedef boost::shared_ptr< ::common_msgs::ScanWifiResponse_<ContainerAllocator> const> ConstPtr;
  30. }; // struct ScanWifiResponse_
  31. typedef ::common_msgs::ScanWifiResponse_<std::allocator<void> > ScanWifiResponse;
  32. typedef boost::shared_ptr< ::common_msgs::ScanWifiResponse > ScanWifiResponsePtr;
  33. typedef boost::shared_ptr< ::common_msgs::ScanWifiResponse const> ScanWifiResponseConstPtr;
  34. // constants requiring out of line definition
  35. template<typename ContainerAllocator>
  36. std::ostream& operator<<(std::ostream& s, const ::common_msgs::ScanWifiResponse_<ContainerAllocator> & v)
  37. {
  38. ros::message_operations::Printer< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >::stream(s, "", v);
  39. return s;
  40. }
  41. template<typename ContainerAllocator1, typename ContainerAllocator2>
  42. bool operator==(const ::common_msgs::ScanWifiResponse_<ContainerAllocator1> & lhs, const ::common_msgs::ScanWifiResponse_<ContainerAllocator2> & rhs)
  43. {
  44. return lhs.wifi_list == rhs.wifi_list;
  45. }
  46. template<typename ContainerAllocator1, typename ContainerAllocator2>
  47. bool operator!=(const ::common_msgs::ScanWifiResponse_<ContainerAllocator1> & lhs, const ::common_msgs::ScanWifiResponse_<ContainerAllocator2> & rhs)
  48. {
  49. return !(lhs == rhs);
  50. }
  51. } // namespace common_msgs
  52. namespace ros
  53. {
  54. namespace message_traits
  55. {
  56. template <class ContainerAllocator>
  57. struct IsFixedSize< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  58. : FalseType
  59. { };
  60. template <class ContainerAllocator>
  61. struct IsFixedSize< ::common_msgs::ScanWifiResponse_<ContainerAllocator> const>
  62. : FalseType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsMessage< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  66. : TrueType
  67. { };
  68. template <class ContainerAllocator>
  69. struct IsMessage< ::common_msgs::ScanWifiResponse_<ContainerAllocator> const>
  70. : TrueType
  71. { };
  72. template <class ContainerAllocator>
  73. struct HasHeader< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  74. : FalseType
  75. { };
  76. template <class ContainerAllocator>
  77. struct HasHeader< ::common_msgs::ScanWifiResponse_<ContainerAllocator> const>
  78. : FalseType
  79. { };
  80. template<class ContainerAllocator>
  81. struct MD5Sum< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  82. {
  83. static const char* value()
  84. {
  85. return "d6c97b7f12b95cd143439e40b3d5c957";
  86. }
  87. static const char* value(const ::common_msgs::ScanWifiResponse_<ContainerAllocator>&) { return value(); }
  88. static const uint64_t static_value1 = 0xd6c97b7f12b95cd1ULL;
  89. static const uint64_t static_value2 = 0x43439e40b3d5c957ULL;
  90. };
  91. template<class ContainerAllocator>
  92. struct DataType< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  93. {
  94. static const char* value()
  95. {
  96. return "common_msgs/ScanWifiResponse";
  97. }
  98. static const char* value(const ::common_msgs::ScanWifiResponse_<ContainerAllocator>&) { return value(); }
  99. };
  100. template<class ContainerAllocator>
  101. struct Definition< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  102. {
  103. static const char* value()
  104. {
  105. return "WifiInfo[] wifi_list\n"
  106. "\n"
  107. "\n"
  108. "================================================================================\n"
  109. "MSG: common_msgs/WifiInfo\n"
  110. "string wifi_name\n"
  111. "int32 level\n"
  112. ;
  113. }
  114. static const char* value(const ::common_msgs::ScanWifiResponse_<ContainerAllocator>&) { return value(); }
  115. };
  116. } // namespace message_traits
  117. } // namespace ros
  118. namespace ros
  119. {
  120. namespace serialization
  121. {
  122. template<class ContainerAllocator> struct Serializer< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  123. {
  124. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  125. {
  126. stream.next(m.wifi_list);
  127. }
  128. ROS_DECLARE_ALLINONE_SERIALIZER
  129. }; // struct ScanWifiResponse_
  130. } // namespace serialization
  131. } // namespace ros
  132. namespace ros
  133. {
  134. namespace message_operations
  135. {
  136. template<class ContainerAllocator>
  137. struct Printer< ::common_msgs::ScanWifiResponse_<ContainerAllocator> >
  138. {
  139. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::ScanWifiResponse_<ContainerAllocator>& v)
  140. {
  141. s << indent << "wifi_list[]" << std::endl;
  142. for (size_t i = 0; i < v.wifi_list.size(); ++i)
  143. {
  144. s << indent << " wifi_list[" << i << "]: ";
  145. s << std::endl;
  146. s << indent;
  147. Printer< ::common_msgs::WifiInfo_<ContainerAllocator> >::stream(s, indent + " ", v.wifi_list[i]);
  148. }
  149. }
  150. };
  151. } // namespace message_operations
  152. } // namespace ros
  153. #endif // COMMON_MSGS_MESSAGE_SCANWIFIRESPONSE_H