SwitchModeRequest.h 4.8 KB

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