Go to the documentation of this file.00001
00002 #ifndef SHARED_SERIAL_MESSAGE_FLUSH_H
00003 #define SHARED_SERIAL_MESSAGE_FLUSH_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 Flush_ {
00022 typedef Flush_<ContainerAllocator> Type;
00023
00024 Flush_()
00025 : socket(0)
00026 , timeout(0.0)
00027 {
00028 }
00029
00030 Flush_(const ContainerAllocator& _alloc)
00031 : socket(0)
00032 , timeout(0.0)
00033 {
00034 }
00035
00036 typedef uint32_t _socket_type;
00037 uint32_t socket;
00038
00039 typedef float _timeout_type;
00040 float timeout;
00041
00042
00043 typedef boost::shared_ptr< ::shared_serial::Flush_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::shared_serial::Flush_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::shared_serial::Flush_<std::allocator<void> > Flush;
00048
00049 typedef boost::shared_ptr< ::shared_serial::Flush> FlushPtr;
00050 typedef boost::shared_ptr< ::shared_serial::Flush const> FlushConstPtr;
00051
00052
00053 template<typename ContainerAllocator>
00054 std::ostream& operator<<(std::ostream& s, const ::shared_serial::Flush_<ContainerAllocator> & v)
00055 {
00056 ros::message_operations::Printer< ::shared_serial::Flush_<ContainerAllocator> >::stream(s, "", v);
00057 return s;}
00058
00059 }
00060
00061 namespace ros
00062 {
00063 namespace message_traits
00064 {
00065 template<class ContainerAllocator> struct IsMessage< ::shared_serial::Flush_<ContainerAllocator> > : public TrueType {};
00066 template<class ContainerAllocator> struct IsMessage< ::shared_serial::Flush_<ContainerAllocator> const> : public TrueType {};
00067 template<class ContainerAllocator>
00068 struct MD5Sum< ::shared_serial::Flush_<ContainerAllocator> > {
00069 static const char* value()
00070 {
00071 return "998caebd95b1820bc38f9812484a09de";
00072 }
00073
00074 static const char* value(const ::shared_serial::Flush_<ContainerAllocator> &) { return value(); }
00075 static const uint64_t static_value1 = 0x998caebd95b1820bULL;
00076 static const uint64_t static_value2 = 0xc38f9812484a09deULL;
00077 };
00078
00079 template<class ContainerAllocator>
00080 struct DataType< ::shared_serial::Flush_<ContainerAllocator> > {
00081 static const char* value()
00082 {
00083 return "shared_serial/Flush";
00084 }
00085
00086 static const char* value(const ::shared_serial::Flush_<ContainerAllocator> &) { return value(); }
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct Definition< ::shared_serial::Flush_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "# Flush serial port.\n\
00094 \n\
00095 # Eeither 0 (connectionless) or an unexpired socket identifier\n\
00096 # from an earlier communication.\n\
00097 uint32 socket\n\
00098 \n\
00099 # Number of seconds to keep the port locked after this communication.\n\
00100 float32 timeout\n\
00101 \n\
00102 ";
00103 }
00104
00105 static const char* value(const ::shared_serial::Flush_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator> struct IsFixedSize< ::shared_serial::Flush_<ContainerAllocator> > : public TrueType {};
00109 }
00110 }
00111
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116
00117 template<class ContainerAllocator> struct Serializer< ::shared_serial::Flush_<ContainerAllocator> >
00118 {
00119 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120 {
00121 stream.next(m.socket);
00122 stream.next(m.timeout);
00123 }
00124
00125 ROS_DECLARE_ALLINONE_SERIALIZER;
00126 };
00127 }
00128 }
00129
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134
00135 template<class ContainerAllocator>
00136 struct Printer< ::shared_serial::Flush_<ContainerAllocator> >
00137 {
00138 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::shared_serial::Flush_<ContainerAllocator> & v)
00139 {
00140 s << indent << "socket: ";
00141 Printer<uint32_t>::stream(s, indent + " ", v.socket);
00142 s << indent << "timeout: ";
00143 Printer<float>::stream(s, indent + " ", v.timeout);
00144 }
00145 };
00146
00147
00148 }
00149 }
00150
00151 #endif // SHARED_SERIAL_MESSAGE_FLUSH_H
00152