Go to the documentation of this file.00001
00002 #ifndef APPLANIX_MSGS_MESSAGE_COMMONFOOTER_H
00003 #define APPLANIX_MSGS_MESSAGE_COMMONFOOTER_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 applanix_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct CommonFooter_ {
00022 typedef CommonFooter_<ContainerAllocator> Type;
00023
00024 CommonFooter_()
00025 : checksum(0)
00026 , end()
00027 {
00028 end.assign(0);
00029 }
00030
00031 CommonFooter_(const ContainerAllocator& _alloc)
00032 : checksum(0)
00033 , end()
00034 {
00035 end.assign(0);
00036 }
00037
00038 typedef uint16_t _checksum_type;
00039 uint16_t checksum;
00040
00041 typedef boost::array<uint8_t, 2> _end_type;
00042 boost::array<uint8_t, 2> end;
00043
00044 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > END;
00045
00046 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter_<ContainerAllocator> > Ptr;
00047 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter_<ContainerAllocator> const> ConstPtr;
00048 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00049 };
00050 typedef ::applanix_msgs::CommonFooter_<std::allocator<void> > CommonFooter;
00051
00052 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter> CommonFooterPtr;
00053 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter const> CommonFooterConstPtr;
00054
00055 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CommonFooter_<ContainerAllocator>::END = "$#";
00056
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::CommonFooter_<ContainerAllocator> & v)
00059 {
00060 ros::message_operations::Printer< ::applanix_msgs::CommonFooter_<ContainerAllocator> >::stream(s, "", v);
00061 return s;}
00062
00063 }
00064
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonFooter_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonFooter_<ContainerAllocator> const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::applanix_msgs::CommonFooter_<ContainerAllocator> > {
00073 static const char* value()
00074 {
00075 return "603956a77085dd6eb1088e0cade415b7";
00076 }
00077
00078 static const char* value(const ::applanix_msgs::CommonFooter_<ContainerAllocator> &) { return value(); }
00079 static const uint64_t static_value1 = 0x603956a77085dd6eULL;
00080 static const uint64_t static_value2 = 0xb1088e0cade415b7ULL;
00081 };
00082
00083 template<class ContainerAllocator>
00084 struct DataType< ::applanix_msgs::CommonFooter_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "applanix_msgs/CommonFooter";
00088 }
00089
00090 static const char* value(const ::applanix_msgs::CommonFooter_<ContainerAllocator> &) { return value(); }
00091 };
00092
00093 template<class ContainerAllocator>
00094 struct Definition< ::applanix_msgs::CommonFooter_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "string END=$#\n\
00098 uint16 checksum\n\
00099 uint8[2] end\n\
00100 \n\
00101 ";
00102 }
00103
00104 static const char* value(const ::applanix_msgs::CommonFooter_<ContainerAllocator> &) { return value(); }
00105 };
00106
00107 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::CommonFooter_<ContainerAllocator> > : public TrueType {};
00108 }
00109 }
00110
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115
00116 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::CommonFooter_<ContainerAllocator> >
00117 {
00118 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119 {
00120 stream.next(m.checksum);
00121 stream.next(m.end);
00122 }
00123
00124 ROS_DECLARE_ALLINONE_SERIALIZER;
00125 };
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133
00134 template<class ContainerAllocator>
00135 struct Printer< ::applanix_msgs::CommonFooter_<ContainerAllocator> >
00136 {
00137 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::CommonFooter_<ContainerAllocator> & v)
00138 {
00139 s << indent << "checksum: ";
00140 Printer<uint16_t>::stream(s, indent + " ", v.checksum);
00141 s << indent << "end[]" << std::endl;
00142 for (size_t i = 0; i < v.end.size(); ++i)
00143 {
00144 s << indent << " end[" << i << "]: ";
00145 Printer<uint8_t>::stream(s, indent + " ", v.end[i]);
00146 }
00147 }
00148 };
00149
00150
00151 }
00152 }
00153
00154 #endif // APPLANIX_MSGS_MESSAGE_COMMONFOOTER_H
00155