$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/CommonHeader.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_COMMONHEADER_H 00003 #define APPLANIX_MSGS_MESSAGE_COMMONHEADER_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 CommonHeader_ { 00022 typedef CommonHeader_<ContainerAllocator> Type; 00023 00024 CommonHeader_() 00025 : start() 00026 , id(0) 00027 , length(0) 00028 { 00029 start.assign(0); 00030 } 00031 00032 CommonHeader_(const ContainerAllocator& _alloc) 00033 : start() 00034 , id(0) 00035 , length(0) 00036 { 00037 start.assign(0); 00038 } 00039 00040 typedef boost::array<uint8_t, 4> _start_type; 00041 boost::array<uint8_t, 4> start; 00042 00043 typedef uint16_t _id_type; 00044 uint16_t id; 00045 00046 typedef uint16_t _length_type; 00047 uint16_t length; 00048 00049 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > START_GROUP; 00050 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > START_MESSAGE; 00051 00052 ROS_DEPRECATED uint32_t get_start_size() const { return (uint32_t)start.size(); } 00053 private: 00054 static const char* __s_getDataType_() { return "applanix_msgs/CommonHeader"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "cb573def7f5977ee910df3469d33c060"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "string START_GROUP=$GRP\n\ 00069 string START_MESSAGE=$MSG\n\ 00070 \n\ 00071 uint8[4] start\n\ 00072 uint16 id\n\ 00073 uint16 length\n\ 00074 \n\ 00075 "; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00082 { 00083 ros::serialization::OStream stream(write_ptr, 1000000000); 00084 ros::serialization::serialize(stream, start); 00085 ros::serialization::serialize(stream, id); 00086 ros::serialization::serialize(stream, length); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00091 { 00092 ros::serialization::IStream stream(read_ptr, 1000000000); 00093 ros::serialization::deserialize(stream, start); 00094 ros::serialization::deserialize(stream, id); 00095 ros::serialization::deserialize(stream, length); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint32_t serializationLength() const 00100 { 00101 uint32_t size = 0; 00102 size += ros::serialization::serializationLength(start); 00103 size += ros::serialization::serializationLength(id); 00104 size += ros::serialization::serializationLength(length); 00105 return size; 00106 } 00107 00108 typedef boost::shared_ptr< ::applanix_msgs::CommonHeader_<ContainerAllocator> > Ptr; 00109 typedef boost::shared_ptr< ::applanix_msgs::CommonHeader_<ContainerAllocator> const> ConstPtr; 00110 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00111 }; // struct CommonHeader 00112 typedef ::applanix_msgs::CommonHeader_<std::allocator<void> > CommonHeader; 00113 00114 typedef boost::shared_ptr< ::applanix_msgs::CommonHeader> CommonHeaderPtr; 00115 typedef boost::shared_ptr< ::applanix_msgs::CommonHeader const> CommonHeaderConstPtr; 00116 00117 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CommonHeader_<ContainerAllocator>::START_GROUP = "$GRP"; 00118 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CommonHeader_<ContainerAllocator>::START_MESSAGE = "$MSG"; 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::CommonHeader_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::applanix_msgs::CommonHeader_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace applanix_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonHeader_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::CommonHeader_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::applanix_msgs::CommonHeader_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "cb573def7f5977ee910df3469d33c060"; 00139 } 00140 00141 static const char* value(const ::applanix_msgs::CommonHeader_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0xcb573def7f5977eeULL; 00143 static const uint64_t static_value2 = 0x910df3469d33c060ULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::applanix_msgs::CommonHeader_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "applanix_msgs/CommonHeader"; 00151 } 00152 00153 static const char* value(const ::applanix_msgs::CommonHeader_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::applanix_msgs::CommonHeader_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "string START_GROUP=$GRP\n\ 00161 string START_MESSAGE=$MSG\n\ 00162 \n\ 00163 uint8[4] start\n\ 00164 uint16 id\n\ 00165 uint16 length\n\ 00166 \n\ 00167 "; 00168 } 00169 00170 static const char* value(const ::applanix_msgs::CommonHeader_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::CommonHeader_<ContainerAllocator> > : public TrueType {}; 00174 } // namespace message_traits 00175 } // namespace ros 00176 00177 namespace ros 00178 { 00179 namespace serialization 00180 { 00181 00182 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::CommonHeader_<ContainerAllocator> > 00183 { 00184 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00185 { 00186 stream.next(m.start); 00187 stream.next(m.id); 00188 stream.next(m.length); 00189 } 00190 00191 ROS_DECLARE_ALLINONE_SERIALIZER; 00192 }; // struct CommonHeader_ 00193 } // namespace serialization 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace message_operations 00199 { 00200 00201 template<class ContainerAllocator> 00202 struct Printer< ::applanix_msgs::CommonHeader_<ContainerAllocator> > 00203 { 00204 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::CommonHeader_<ContainerAllocator> & v) 00205 { 00206 s << indent << "start[]" << std::endl; 00207 for (size_t i = 0; i < v.start.size(); ++i) 00208 { 00209 s << indent << " start[" << i << "]: "; 00210 Printer<uint8_t>::stream(s, indent + " ", v.start[i]); 00211 } 00212 s << indent << "id: "; 00213 Printer<uint16_t>::stream(s, indent + " ", v.id); 00214 s << indent << "length: "; 00215 Printer<uint16_t>::stream(s, indent + " ", v.length); 00216 } 00217 }; 00218 00219 00220 } // namespace message_operations 00221 } // namespace ros 00222 00223 #endif // APPLANIX_MSGS_MESSAGE_COMMONHEADER_H 00224