// Generated by gencpp from file common_msgs/SwitchModeRequest.msg // DO NOT EDIT! #ifndef COMMON_MSGS_MESSAGE_SWITCHMODEREQUEST_H #define COMMON_MSGS_MESSAGE_SWITCHMODEREQUEST_H #include <string> #include <vector> #include <memory> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> namespace common_msgs { template <class ContainerAllocator> struct SwitchModeRequest_ { typedef SwitchModeRequest_<ContainerAllocator> Type; SwitchModeRequest_() : mode(0) { } SwitchModeRequest_(const ContainerAllocator& _alloc) : mode(0) { (void)_alloc; } typedef int32_t _mode_type; _mode_type mode; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest_<ContainerAllocator> const> ConstPtr; }; // struct SwitchModeRequest_ typedef ::common_msgs::SwitchModeRequest_<std::allocator<void> > SwitchModeRequest; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest > SwitchModeRequestPtr; typedef boost::shared_ptr< ::common_msgs::SwitchModeRequest const> SwitchModeRequestConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::common_msgs::SwitchModeRequest_<ContainerAllocator> & v) { ros::message_operations::Printer< ::common_msgs::SwitchModeRequest_<ContainerAllocator> >::stream(s, "", v); return s; } template<typename ContainerAllocator1, typename ContainerAllocator2> bool operator==(const ::common_msgs::SwitchModeRequest_<ContainerAllocator1> & lhs, const ::common_msgs::SwitchModeRequest_<ContainerAllocator2> & rhs) { return lhs.mode == rhs.mode; } template<typename ContainerAllocator1, typename ContainerAllocator2> bool operator!=(const ::common_msgs::SwitchModeRequest_<ContainerAllocator1> & lhs, const ::common_msgs::SwitchModeRequest_<ContainerAllocator2> & rhs) { return !(lhs == rhs); } } // namespace common_msgs namespace ros { namespace message_traits { template <class ContainerAllocator> struct IsFixedSize< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsFixedSize< ::common_msgs::SwitchModeRequest_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::common_msgs::SwitchModeRequest_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct HasHeader< ::common_msgs::SwitchModeRequest_<ContainerAllocator> const> : FalseType { }; template<class ContainerAllocator> struct MD5Sum< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > { static const char* value() { return "ff63f6ea3c3e9b7504b2cb3ee0a09d92"; } static const char* value(const ::common_msgs::SwitchModeRequest_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0xff63f6ea3c3e9b75ULL; static const uint64_t static_value2 = 0x04b2cb3ee0a09d92ULL; }; template<class ContainerAllocator> struct DataType< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > { static const char* value() { return "common_msgs/SwitchModeRequest"; } static const char* value(const ::common_msgs::SwitchModeRequest_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > { static const char* value() { return "int32 mode\n" ; } static const char* value(const ::common_msgs::SwitchModeRequest_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.mode); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct SwitchModeRequest_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::common_msgs::SwitchModeRequest_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::SwitchModeRequest_<ContainerAllocator>& v) { s << indent << "mode: "; Printer<int32_t>::stream(s, indent + " ", v.mode); } }; } // namespace message_operations } // namespace ros #endif // COMMON_MSGS_MESSAGE_SWITCHMODEREQUEST_H