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