WifiInfo.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. // Generated by gencpp from file common_msgs/WifiInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_WIFIINFO_H
  4. #define COMMON_MSGS_MESSAGE_WIFIINFO_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 WifiInfo_
  16. {
  17. typedef WifiInfo_<ContainerAllocator> Type;
  18. WifiInfo_()
  19. : wifi_name()
  20. , level(0) {
  21. }
  22. WifiInfo_(const ContainerAllocator& _alloc)
  23. : wifi_name(_alloc)
  24. , level(0) {
  25. (void)_alloc;
  26. }
  27. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _wifi_name_type;
  28. _wifi_name_type wifi_name;
  29. typedef int32_t _level_type;
  30. _level_type level;
  31. typedef boost::shared_ptr< ::common_msgs::WifiInfo_<ContainerAllocator> > Ptr;
  32. typedef boost::shared_ptr< ::common_msgs::WifiInfo_<ContainerAllocator> const> ConstPtr;
  33. }; // struct WifiInfo_
  34. typedef ::common_msgs::WifiInfo_<std::allocator<void> > WifiInfo;
  35. typedef boost::shared_ptr< ::common_msgs::WifiInfo > WifiInfoPtr;
  36. typedef boost::shared_ptr< ::common_msgs::WifiInfo const> WifiInfoConstPtr;
  37. // constants requiring out of line definition
  38. template<typename ContainerAllocator>
  39. std::ostream& operator<<(std::ostream& s, const ::common_msgs::WifiInfo_<ContainerAllocator> & v)
  40. {
  41. ros::message_operations::Printer< ::common_msgs::WifiInfo_<ContainerAllocator> >::stream(s, "", v);
  42. return s;
  43. }
  44. template<typename ContainerAllocator1, typename ContainerAllocator2>
  45. bool operator==(const ::common_msgs::WifiInfo_<ContainerAllocator1> & lhs, const ::common_msgs::WifiInfo_<ContainerAllocator2> & rhs)
  46. {
  47. return lhs.wifi_name == rhs.wifi_name &&
  48. lhs.level == rhs.level;
  49. }
  50. template<typename ContainerAllocator1, typename ContainerAllocator2>
  51. bool operator!=(const ::common_msgs::WifiInfo_<ContainerAllocator1> & lhs, const ::common_msgs::WifiInfo_<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::WifiInfo_<ContainerAllocator> >
  62. : FalseType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsFixedSize< ::common_msgs::WifiInfo_<ContainerAllocator> const>
  66. : FalseType
  67. { };
  68. template <class ContainerAllocator>
  69. struct IsMessage< ::common_msgs::WifiInfo_<ContainerAllocator> >
  70. : TrueType
  71. { };
  72. template <class ContainerAllocator>
  73. struct IsMessage< ::common_msgs::WifiInfo_<ContainerAllocator> const>
  74. : TrueType
  75. { };
  76. template <class ContainerAllocator>
  77. struct HasHeader< ::common_msgs::WifiInfo_<ContainerAllocator> >
  78. : FalseType
  79. { };
  80. template <class ContainerAllocator>
  81. struct HasHeader< ::common_msgs::WifiInfo_<ContainerAllocator> const>
  82. : FalseType
  83. { };
  84. template<class ContainerAllocator>
  85. struct MD5Sum< ::common_msgs::WifiInfo_<ContainerAllocator> >
  86. {
  87. static const char* value()
  88. {
  89. return "2208983a79b60f616ffc67f0aae922b9";
  90. }
  91. static const char* value(const ::common_msgs::WifiInfo_<ContainerAllocator>&) { return value(); }
  92. static const uint64_t static_value1 = 0x2208983a79b60f61ULL;
  93. static const uint64_t static_value2 = 0x6ffc67f0aae922b9ULL;
  94. };
  95. template<class ContainerAllocator>
  96. struct DataType< ::common_msgs::WifiInfo_<ContainerAllocator> >
  97. {
  98. static const char* value()
  99. {
  100. return "common_msgs/WifiInfo";
  101. }
  102. static const char* value(const ::common_msgs::WifiInfo_<ContainerAllocator>&) { return value(); }
  103. };
  104. template<class ContainerAllocator>
  105. struct Definition< ::common_msgs::WifiInfo_<ContainerAllocator> >
  106. {
  107. static const char* value()
  108. {
  109. return "string wifi_name\n"
  110. "int32 level\n"
  111. ;
  112. }
  113. static const char* value(const ::common_msgs::WifiInfo_<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::WifiInfo_<ContainerAllocator> >
  122. {
  123. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  124. {
  125. stream.next(m.wifi_name);
  126. stream.next(m.level);
  127. }
  128. ROS_DECLARE_ALLINONE_SERIALIZER
  129. }; // struct WifiInfo_
  130. } // namespace serialization
  131. } // namespace ros
  132. namespace ros
  133. {
  134. namespace message_operations
  135. {
  136. template<class ContainerAllocator>
  137. struct Printer< ::common_msgs::WifiInfo_<ContainerAllocator> >
  138. {
  139. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::WifiInfo_<ContainerAllocator>& v)
  140. {
  141. s << indent << "wifi_name: ";
  142. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.wifi_name);
  143. s << indent << "level: ";
  144. Printer<int32_t>::stream(s, indent + " ", v.level);
  145. }
  146. };
  147. } // namespace message_operations
  148. } // namespace ros
  149. #endif // COMMON_MSGS_MESSAGE_WIFIINFO_H