StartChargeResponse.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. // Generated by gencpp from file common_msgs/StartChargeResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_STARTCHARGERESPONSE_H
  4. #define COMMON_MSGS_MESSAGE_STARTCHARGERESPONSE_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 StartChargeResponse_
  16. {
  17. typedef StartChargeResponse_<ContainerAllocator> Type;
  18. StartChargeResponse_()
  19. : success(false)
  20. , message()
  21. , task_error_code(0) {
  22. }
  23. StartChargeResponse_(const ContainerAllocator& _alloc)
  24. : success(false)
  25. , message(_alloc)
  26. , task_error_code(0) {
  27. (void)_alloc;
  28. }
  29. typedef uint8_t _success_type;
  30. _success_type success;
  31. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _message_type;
  32. _message_type message;
  33. typedef int64_t _task_error_code_type;
  34. _task_error_code_type task_error_code;
  35. typedef boost::shared_ptr< ::common_msgs::StartChargeResponse_<ContainerAllocator> > Ptr;
  36. typedef boost::shared_ptr< ::common_msgs::StartChargeResponse_<ContainerAllocator> const> ConstPtr;
  37. }; // struct StartChargeResponse_
  38. typedef ::common_msgs::StartChargeResponse_<std::allocator<void> > StartChargeResponse;
  39. typedef boost::shared_ptr< ::common_msgs::StartChargeResponse > StartChargeResponsePtr;
  40. typedef boost::shared_ptr< ::common_msgs::StartChargeResponse const> StartChargeResponseConstPtr;
  41. // constants requiring out of line definition
  42. template<typename ContainerAllocator>
  43. std::ostream& operator<<(std::ostream& s, const ::common_msgs::StartChargeResponse_<ContainerAllocator> & v)
  44. {
  45. ros::message_operations::Printer< ::common_msgs::StartChargeResponse_<ContainerAllocator> >::stream(s, "", v);
  46. return s;
  47. }
  48. template<typename ContainerAllocator1, typename ContainerAllocator2>
  49. bool operator==(const ::common_msgs::StartChargeResponse_<ContainerAllocator1> & lhs, const ::common_msgs::StartChargeResponse_<ContainerAllocator2> & rhs)
  50. {
  51. return lhs.success == rhs.success &&
  52. lhs.message == rhs.message &&
  53. lhs.task_error_code == rhs.task_error_code;
  54. }
  55. template<typename ContainerAllocator1, typename ContainerAllocator2>
  56. bool operator!=(const ::common_msgs::StartChargeResponse_<ContainerAllocator1> & lhs, const ::common_msgs::StartChargeResponse_<ContainerAllocator2> & rhs)
  57. {
  58. return !(lhs == rhs);
  59. }
  60. } // namespace common_msgs
  61. namespace ros
  62. {
  63. namespace message_traits
  64. {
  65. template <class ContainerAllocator>
  66. struct IsFixedSize< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  67. : FalseType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsFixedSize< ::common_msgs::StartChargeResponse_<ContainerAllocator> const>
  71. : FalseType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsMessage< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  75. : TrueType
  76. { };
  77. template <class ContainerAllocator>
  78. struct IsMessage< ::common_msgs::StartChargeResponse_<ContainerAllocator> const>
  79. : TrueType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  83. : FalseType
  84. { };
  85. template <class ContainerAllocator>
  86. struct HasHeader< ::common_msgs::StartChargeResponse_<ContainerAllocator> const>
  87. : FalseType
  88. { };
  89. template<class ContainerAllocator>
  90. struct MD5Sum< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  91. {
  92. static const char* value()
  93. {
  94. return "400a544fe3ba509a71b39fba4682ebc9";
  95. }
  96. static const char* value(const ::common_msgs::StartChargeResponse_<ContainerAllocator>&) { return value(); }
  97. static const uint64_t static_value1 = 0x400a544fe3ba509aULL;
  98. static const uint64_t static_value2 = 0x71b39fba4682ebc9ULL;
  99. };
  100. template<class ContainerAllocator>
  101. struct DataType< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  102. {
  103. static const char* value()
  104. {
  105. return "common_msgs/StartChargeResponse";
  106. }
  107. static const char* value(const ::common_msgs::StartChargeResponse_<ContainerAllocator>&) { return value(); }
  108. };
  109. template<class ContainerAllocator>
  110. struct Definition< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  111. {
  112. static const char* value()
  113. {
  114. return "#是否成功\n"
  115. "bool success\n"
  116. "#信息描述\n"
  117. "string message\n"
  118. "#任务执行错误码(无错时为0)\n"
  119. "int64 task_error_code\n"
  120. ;
  121. }
  122. static const char* value(const ::common_msgs::StartChargeResponse_<ContainerAllocator>&) { return value(); }
  123. };
  124. } // namespace message_traits
  125. } // namespace ros
  126. namespace ros
  127. {
  128. namespace serialization
  129. {
  130. template<class ContainerAllocator> struct Serializer< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  131. {
  132. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  133. {
  134. stream.next(m.success);
  135. stream.next(m.message);
  136. stream.next(m.task_error_code);
  137. }
  138. ROS_DECLARE_ALLINONE_SERIALIZER
  139. }; // struct StartChargeResponse_
  140. } // namespace serialization
  141. } // namespace ros
  142. namespace ros
  143. {
  144. namespace message_operations
  145. {
  146. template<class ContainerAllocator>
  147. struct Printer< ::common_msgs::StartChargeResponse_<ContainerAllocator> >
  148. {
  149. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::StartChargeResponse_<ContainerAllocator>& v)
  150. {
  151. s << indent << "success: ";
  152. Printer<uint8_t>::stream(s, indent + " ", v.success);
  153. s << indent << "message: ";
  154. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.message);
  155. s << indent << "task_error_code: ";
  156. Printer<int64_t>::stream(s, indent + " ", v.task_error_code);
  157. }
  158. };
  159. } // namespace message_operations
  160. } // namespace ros
  161. #endif // COMMON_MSGS_MESSAGE_STARTCHARGERESPONSE_H