$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_interaction_primitives/msg/MenuClicked.msg */ 00002 #ifndef SRS_INTERACTION_PRIMITIVES_MESSAGE_MENUCLICKED_H 00003 #define SRS_INTERACTION_PRIMITIVES_MESSAGE_MENUCLICKED_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 00018 namespace srs_interaction_primitives 00019 { 00020 template <class ContainerAllocator> 00021 struct MenuClicked_ { 00022 typedef MenuClicked_<ContainerAllocator> Type; 00023 00024 MenuClicked_() 00025 : marker_name() 00026 , menu_title() 00027 , state(0) 00028 { 00029 } 00030 00031 MenuClicked_(const ContainerAllocator& _alloc) 00032 : marker_name(_alloc) 00033 , menu_title(_alloc) 00034 , state(0) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _marker_name_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > marker_name; 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _menu_title_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > menu_title; 00043 00044 typedef int32_t _state_type; 00045 int32_t state; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "srs_interaction_primitives/MenuClicked"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "8da56e120287a88bbae0d3ff0c5503b7"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "string marker_name\n\ 00064 string menu_title\n\ 00065 int32 state\n\ 00066 \n\ 00067 "; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00070 00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00074 { 00075 ros::serialization::OStream stream(write_ptr, 1000000000); 00076 ros::serialization::serialize(stream, marker_name); 00077 ros::serialization::serialize(stream, menu_title); 00078 ros::serialization::serialize(stream, state); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, marker_name); 00086 ros::serialization::deserialize(stream, menu_title); 00087 ros::serialization::deserialize(stream, state); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(marker_name); 00095 size += ros::serialization::serializationLength(menu_title); 00096 size += ros::serialization::serializationLength(state); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct MenuClicked 00104 typedef ::srs_interaction_primitives::MenuClicked_<std::allocator<void> > MenuClicked; 00105 00106 typedef boost::shared_ptr< ::srs_interaction_primitives::MenuClicked> MenuClickedPtr; 00107 typedef boost::shared_ptr< ::srs_interaction_primitives::MenuClicked const> MenuClickedConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace srs_interaction_primitives 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "8da56e120287a88bbae0d3ff0c5503b7"; 00129 } 00130 00131 static const char* value(const ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0x8da56e120287a88bULL; 00133 static const uint64_t static_value2 = 0xbae0d3ff0c5503b7ULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "srs_interaction_primitives/MenuClicked"; 00141 } 00142 00143 static const char* value(const ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "string marker_name\n\ 00151 string menu_title\n\ 00152 int32 state\n\ 00153 \n\ 00154 "; 00155 } 00156 00157 static const char* value(const ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 } // namespace message_traits 00161 } // namespace ros 00162 00163 namespace ros 00164 { 00165 namespace serialization 00166 { 00167 00168 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > 00169 { 00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00171 { 00172 stream.next(m.marker_name); 00173 stream.next(m.menu_title); 00174 stream.next(m.state); 00175 } 00176 00177 ROS_DECLARE_ALLINONE_SERIALIZER; 00178 }; // struct MenuClicked_ 00179 } // namespace serialization 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace message_operations 00185 { 00186 00187 template<class ContainerAllocator> 00188 struct Printer< ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> > 00189 { 00190 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_interaction_primitives::MenuClicked_<ContainerAllocator> & v) 00191 { 00192 s << indent << "marker_name: "; 00193 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.marker_name); 00194 s << indent << "menu_title: "; 00195 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.menu_title); 00196 s << indent << "state: "; 00197 Printer<int32_t>::stream(s, indent + " ", v.state); 00198 } 00199 }; 00200 00201 00202 } // namespace message_operations 00203 } // namespace ros 00204 00205 #endif // SRS_INTERACTION_PRIMITIVES_MESSAGE_MENUCLICKED_H 00206