ConnectWifiRequest.h 5.6 KB

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