$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/CommonFooter.msg */ 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 ROS_DEPRECATED uint32_t get_end_size() const { return (uint32_t)end.size(); } 00047 private: 00048 static const char* __s_getDataType_() { return "applanix_msgs/CommonFooter"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "603956a77085dd6eb1088e0cade415b7"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getMessageDefinition_() { return "string END=$#\n\ 00063 uint16 checksum\n\ 00064 uint8[2] end\n\ 00065 \n\ 00066 "; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00069 00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00073 { 00074 ros::serialization::OStream stream(write_ptr, 1000000000); 00075 ros::serialization::serialize(stream, checksum); 00076 ros::serialization::serialize(stream, end); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00081 { 00082 ros::serialization::IStream stream(read_ptr, 1000000000); 00083 ros::serialization::deserialize(stream, checksum); 00084 ros::serialization::deserialize(stream, end); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint32_t serializationLength() const 00089 { 00090 uint32_t size = 0; 00091 size += ros::serialization::serializationLength(checksum); 00092 size += ros::serialization::serializationLength(end); 00093 return size; 00094 } 00095 00096 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter_<ContainerAllocator> > Ptr; 00097 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter_<ContainerAllocator> const> ConstPtr; 00098 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00099 }; // struct CommonFooter 00100 typedef ::applanix_msgs::CommonFooter_<std::allocator<void> > CommonFooter; 00101 00102 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter> CommonFooterPtr; 00103 typedef boost::shared_ptr< ::applanix_msgs::CommonFooter const> CommonFooterConstPtr; 00104 00105 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CommonFooter_<ContainerAllocator>::END = "$#"; 00106 00107 template<typename ContainerAllocator> 00108 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::CommonFooter_<ContainerAllocator> & v) 00109 { 00110 ros::message_operations::Printer< ::applanix_msgs::CommonFooter_<ContainerAllocator> >::stream(s, "", v); 00111 return s;} 00112 00113 } // namespace applanix_msgs 00114 00115 namespace ros 00116 { 00117 namespace message_traits 00118 { 00119 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonFooter_<ContainerAllocator> > : public TrueType {}; 00120 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonFooter_<ContainerAllocator> const> : public TrueType {}; 00121 template<class ContainerAllocator> 00122 struct MD5Sum< ::applanix_msgs::CommonFooter_<ContainerAllocator> > { 00123 static const char* value() 00124 { 00125 return "603956a77085dd6eb1088e0cade415b7"; 00126 } 00127 00128 static const char* value(const ::applanix_msgs::CommonFooter_<ContainerAllocator> &) { return value(); } 00129 static const uint64_t static_value1 = 0x603956a77085dd6eULL; 00130 static const uint64_t static_value2 = 0xb1088e0cade415b7ULL; 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct DataType< ::applanix_msgs::CommonFooter_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "applanix_msgs/CommonFooter"; 00138 } 00139 00140 static const char* value(const ::applanix_msgs::CommonFooter_<ContainerAllocator> &) { return value(); } 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct Definition< ::applanix_msgs::CommonFooter_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "string END=$#\n\ 00148 uint16 checksum\n\ 00149 uint8[2] end\n\ 00150 \n\ 00151 "; 00152 } 00153 00154 static const char* value(const ::applanix_msgs::CommonFooter_<ContainerAllocator> &) { return value(); } 00155 }; 00156 00157 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::CommonFooter_<ContainerAllocator> > : public TrueType {}; 00158 } // namespace message_traits 00159 } // namespace ros 00160 00161 namespace ros 00162 { 00163 namespace serialization 00164 { 00165 00166 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::CommonFooter_<ContainerAllocator> > 00167 { 00168 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00169 { 00170 stream.next(m.checksum); 00171 stream.next(m.end); 00172 } 00173 00174 ROS_DECLARE_ALLINONE_SERIALIZER; 00175 }; // struct CommonFooter_ 00176 } // namespace serialization 00177 } // namespace ros 00178 00179 namespace ros 00180 { 00181 namespace message_operations 00182 { 00183 00184 template<class ContainerAllocator> 00185 struct Printer< ::applanix_msgs::CommonFooter_<ContainerAllocator> > 00186 { 00187 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::CommonFooter_<ContainerAllocator> & v) 00188 { 00189 s << indent << "checksum: "; 00190 Printer<uint16_t>::stream(s, indent + " ", v.checksum); 00191 s << indent << "end[]" << std::endl; 00192 for (size_t i = 0; i < v.end.size(); ++i) 00193 { 00194 s << indent << " end[" << i << "]: "; 00195 Printer<uint8_t>::stream(s, indent + " ", v.end[i]); 00196 } 00197 } 00198 }; 00199 00200 00201 } // namespace message_operations 00202 } // namespace ros 00203 00204 #endif // APPLANIX_MSGS_MESSAGE_COMMONFOOTER_H 00205