MouseEvent.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-visualization_engine/doc_stacks/2013-12-11_14-28-19.339941/visualization_engine/rve_msgs/msg/MouseEvent.msg */
00002 #ifndef RVE_MSGS_MESSAGE_MOUSEEVENT_H
00003 #define RVE_MSGS_MESSAGE_MOUSEEVENT_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 rve_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MouseEvent_ {
00022   typedef MouseEvent_<ContainerAllocator> Type;
00023 
00024   MouseEvent_()
00025   : type(0)
00026   , button(0)
00027   , buttons(0)
00028   , x(0)
00029   , y(0)
00030   , window_width(0)
00031   , window_height(0)
00032   , modifiers(0)
00033   {
00034   }
00035 
00036   MouseEvent_(const ContainerAllocator& _alloc)
00037   : type(0)
00038   , button(0)
00039   , buttons(0)
00040   , x(0)
00041   , y(0)
00042   , window_width(0)
00043   , window_height(0)
00044   , modifiers(0)
00045   {
00046   }
00047 
00048   typedef uint8_t _type_type;
00049   uint8_t type;
00050 
00051   typedef uint8_t _button_type;
00052   uint8_t button;
00053 
00054   typedef uint8_t _buttons_type;
00055   uint8_t buttons;
00056 
00057   typedef uint32_t _x_type;
00058   uint32_t x;
00059 
00060   typedef uint32_t _y_type;
00061   uint32_t y;
00062 
00063   typedef uint32_t _window_width_type;
00064   uint32_t window_width;
00065 
00066   typedef uint32_t _window_height_type;
00067   uint32_t window_height;
00068 
00069   typedef uint8_t _modifiers_type;
00070   uint8_t modifiers;
00071 
00072   enum { BUTTON_NONE = 0 };
00073   enum { BUTTON_LEFT = 1 };
00074   enum { BUTTON_MIDDLE = 2 };
00075   enum { BUTTON_RIGHT = 4 };
00076   enum { EVENT_PRESS = 0 };
00077   enum { EVENT_RELEASE = 1 };
00078   enum { EVENT_MOVE = 2 };
00079   enum { MODIFIER_NONE = 0 };
00080   enum { MODIFIER_SHIFT = 1 };
00081   enum { MODIFIER_CONTROL = 2 };
00082   enum { MODIFIER_ALT = 4 };
00083   enum { MODIFIER_META = 8 };
00084 
00085   typedef boost::shared_ptr< ::rve_msgs::MouseEvent_<ContainerAllocator> > Ptr;
00086   typedef boost::shared_ptr< ::rve_msgs::MouseEvent_<ContainerAllocator>  const> ConstPtr;
00087   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00088 }; // struct MouseEvent
00089 typedef  ::rve_msgs::MouseEvent_<std::allocator<void> > MouseEvent;
00090 
00091 typedef boost::shared_ptr< ::rve_msgs::MouseEvent> MouseEventPtr;
00092 typedef boost::shared_ptr< ::rve_msgs::MouseEvent const> MouseEventConstPtr;
00093 
00094 
00095 template<typename ContainerAllocator>
00096 std::ostream& operator<<(std::ostream& s, const  ::rve_msgs::MouseEvent_<ContainerAllocator> & v)
00097 {
00098   ros::message_operations::Printer< ::rve_msgs::MouseEvent_<ContainerAllocator> >::stream(s, "", v);
00099   return s;}
00100 
00101 } // namespace rve_msgs
00102 
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::MouseEvent_<ContainerAllocator> > : public TrueType {};
00108 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::MouseEvent_<ContainerAllocator>  const> : public TrueType {};
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::rve_msgs::MouseEvent_<ContainerAllocator> > {
00111   static const char* value() 
00112   {
00113     return "508b38c1b01055ec1a8ae9bd4eb8c10b";
00114   }
00115 
00116   static const char* value(const  ::rve_msgs::MouseEvent_<ContainerAllocator> &) { return value(); } 
00117   static const uint64_t static_value1 = 0x508b38c1b01055ecULL;
00118   static const uint64_t static_value2 = 0x1a8ae9bd4eb8c10bULL;
00119 };
00120 
00121 template<class ContainerAllocator>
00122 struct DataType< ::rve_msgs::MouseEvent_<ContainerAllocator> > {
00123   static const char* value() 
00124   {
00125     return "rve_msgs/MouseEvent";
00126   }
00127 
00128   static const char* value(const  ::rve_msgs::MouseEvent_<ContainerAllocator> &) { return value(); } 
00129 };
00130 
00131 template<class ContainerAllocator>
00132 struct Definition< ::rve_msgs::MouseEvent_<ContainerAllocator> > {
00133   static const char* value() 
00134   {
00135     return "uint8 BUTTON_NONE = 0\n\
00136 uint8 BUTTON_LEFT = 1\n\
00137 uint8 BUTTON_MIDDLE = 2\n\
00138 uint8 BUTTON_RIGHT = 4\n\
00139 \n\
00140 uint8 EVENT_PRESS = 0\n\
00141 uint8 EVENT_RELEASE = 1\n\
00142 uint8 EVENT_MOVE = 2\n\
00143 \n\
00144 uint8 MODIFIER_NONE = 0\n\
00145 uint8 MODIFIER_SHIFT = 1\n\
00146 uint8 MODIFIER_CONTROL = 2\n\
00147 uint8 MODIFIER_ALT = 4\n\
00148 uint8 MODIFIER_META = 8\n\
00149 \n\
00150 uint8 type\n\
00151 \n\
00152 uint8 button\n\
00153 uint8 buttons\n\
00154 \n\
00155 uint32 x\n\
00156 uint32 y\n\
00157 \n\
00158 uint32 window_width\n\
00159 uint32 window_height\n\
00160 \n\
00161 uint8 modifiers\n\
00162 ";
00163   }
00164 
00165   static const char* value(const  ::rve_msgs::MouseEvent_<ContainerAllocator> &) { return value(); } 
00166 };
00167 
00168 template<class ContainerAllocator> struct IsFixedSize< ::rve_msgs::MouseEvent_<ContainerAllocator> > : public TrueType {};
00169 } // namespace message_traits
00170 } // namespace ros
00171 
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176 
00177 template<class ContainerAllocator> struct Serializer< ::rve_msgs::MouseEvent_<ContainerAllocator> >
00178 {
00179   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180   {
00181     stream.next(m.type);
00182     stream.next(m.button);
00183     stream.next(m.buttons);
00184     stream.next(m.x);
00185     stream.next(m.y);
00186     stream.next(m.window_width);
00187     stream.next(m.window_height);
00188     stream.next(m.modifiers);
00189   }
00190 
00191   ROS_DECLARE_ALLINONE_SERIALIZER;
00192 }; // struct MouseEvent_
00193 } // namespace serialization
00194 } // namespace ros
00195 
00196 namespace ros
00197 {
00198 namespace message_operations
00199 {
00200 
00201 template<class ContainerAllocator>
00202 struct Printer< ::rve_msgs::MouseEvent_<ContainerAllocator> >
00203 {
00204   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rve_msgs::MouseEvent_<ContainerAllocator> & v) 
00205   {
00206     s << indent << "type: ";
00207     Printer<uint8_t>::stream(s, indent + "  ", v.type);
00208     s << indent << "button: ";
00209     Printer<uint8_t>::stream(s, indent + "  ", v.button);
00210     s << indent << "buttons: ";
00211     Printer<uint8_t>::stream(s, indent + "  ", v.buttons);
00212     s << indent << "x: ";
00213     Printer<uint32_t>::stream(s, indent + "  ", v.x);
00214     s << indent << "y: ";
00215     Printer<uint32_t>::stream(s, indent + "  ", v.y);
00216     s << indent << "window_width: ";
00217     Printer<uint32_t>::stream(s, indent + "  ", v.window_width);
00218     s << indent << "window_height: ";
00219     Printer<uint32_t>::stream(s, indent + "  ", v.window_height);
00220     s << indent << "modifiers: ";
00221     Printer<uint8_t>::stream(s, indent + "  ", v.modifiers);
00222   }
00223 };
00224 
00225 
00226 } // namespace message_operations
00227 } // namespace ros
00228 
00229 #endif // RVE_MSGS_MESSAGE_MOUSEEVENT_H
00230 


rve_msgs
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:30:39