Send.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-dri-ros-pkg/doc_stacks/2014-01-05_11-04-13.297884/shared_serial/msg/Send.msg */
00002 #ifndef SHARED_SERIAL_MESSAGE_SEND_H
00003 #define SHARED_SERIAL_MESSAGE_SEND_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 shared_serial
00019 {
00020 template <class ContainerAllocator>
00021 struct Send_ {
00022   typedef Send_<ContainerAllocator> Type;
00023 
00024   Send_()
00025   : socket(0)
00026   , data()
00027   , timeout(0.0)
00028   {
00029   }
00030 
00031   Send_(const ContainerAllocator& _alloc)
00032   : socket(0)
00033   , data(_alloc)
00034   , timeout(0.0)
00035   {
00036   }
00037 
00038   typedef uint32_t _socket_type;
00039   uint32_t socket;
00040 
00041   typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  _data_type;
00042   std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other >  data;
00043 
00044   typedef float _timeout_type;
00045   float timeout;
00046 
00047 
00048   typedef boost::shared_ptr< ::shared_serial::Send_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::shared_serial::Send_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct Send
00052 typedef  ::shared_serial::Send_<std::allocator<void> > Send;
00053 
00054 typedef boost::shared_ptr< ::shared_serial::Send> SendPtr;
00055 typedef boost::shared_ptr< ::shared_serial::Send const> SendConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::shared_serial::Send_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::shared_serial::Send_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace shared_serial
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::shared_serial::Send_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::shared_serial::Send_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::shared_serial::Send_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "9488c54395f85f0662ca59801f32b45a";
00077   }
00078 
00079   static const char* value(const  ::shared_serial::Send_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x9488c54395f85f06ULL;
00081   static const uint64_t static_value2 = 0x62ca59801f32b45aULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::shared_serial::Send_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "shared_serial/Send";
00089   }
00090 
00091   static const char* value(const  ::shared_serial::Send_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::shared_serial::Send_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "# Send data to serial port.\n\
00099 \n\
00100 # Eeither 0 (connectionless) or an unexpired socket identifier\n\
00101 # from an earlier communication.\n\
00102 uint32  socket\n\
00103 \n\
00104 # Data to be sent.\n\
00105 uint8[] data\n\
00106 \n\
00107 # Number of seconds to keep the port locked after this communication.\n\
00108 float32 timeout\n\
00109 \n\
00110 ";
00111   }
00112 
00113   static const char* value(const  ::shared_serial::Send_<ContainerAllocator> &) { return value(); } 
00114 };
00115 
00116 } // namespace message_traits
00117 } // namespace ros
00118 
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123 
00124 template<class ContainerAllocator> struct Serializer< ::shared_serial::Send_<ContainerAllocator> >
00125 {
00126   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127   {
00128     stream.next(m.socket);
00129     stream.next(m.data);
00130     stream.next(m.timeout);
00131   }
00132 
00133   ROS_DECLARE_ALLINONE_SERIALIZER;
00134 }; // struct Send_
00135 } // namespace serialization
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142 
00143 template<class ContainerAllocator>
00144 struct Printer< ::shared_serial::Send_<ContainerAllocator> >
00145 {
00146   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::shared_serial::Send_<ContainerAllocator> & v) 
00147   {
00148     s << indent << "socket: ";
00149     Printer<uint32_t>::stream(s, indent + "  ", v.socket);
00150     s << indent << "data[]" << std::endl;
00151     for (size_t i = 0; i < v.data.size(); ++i)
00152     {
00153       s << indent << "  data[" << i << "]: ";
00154       Printer<uint8_t>::stream(s, indent + "  ", v.data[i]);
00155     }
00156     s << indent << "timeout: ";
00157     Printer<float>::stream(s, indent + "  ", v.timeout);
00158   }
00159 };
00160 
00161 
00162 } // namespace message_operations
00163 } // namespace ros
00164 
00165 #endif // SHARED_SERIAL_MESSAGE_SEND_H
00166 


shared_serial
Author(s): Wouter Caarls
autogenerated on Sun Jan 5 2014 11:06:47