IPAddress.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-applanix_driver/doc_stacks/2014-01-02_11-02-36.446834/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   typedef boost::shared_ptr< ::applanix_msgs::IPAddress_<ContainerAllocator> > Ptr;
00053   typedef boost::shared_ptr< ::applanix_msgs::IPAddress_<ContainerAllocator>  const> ConstPtr;
00054   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 }; // struct IPAddress
00056 typedef  ::applanix_msgs::IPAddress_<std::allocator<void> > IPAddress;
00057 
00058 typedef boost::shared_ptr< ::applanix_msgs::IPAddress> IPAddressPtr;
00059 typedef boost::shared_ptr< ::applanix_msgs::IPAddress const> IPAddressConstPtr;
00060 
00061 
00062 template<typename ContainerAllocator>
00063 std::ostream& operator<<(std::ostream& s, const  ::applanix_msgs::IPAddress_<ContainerAllocator> & v)
00064 {
00065   ros::message_operations::Printer< ::applanix_msgs::IPAddress_<ContainerAllocator> >::stream(s, "", v);
00066   return s;}
00067 
00068 } // namespace applanix_msgs
00069 
00070 namespace ros
00071 {
00072 namespace message_traits
00073 {
00074 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IPAddress_<ContainerAllocator> > : public TrueType {};
00075 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::IPAddress_<ContainerAllocator>  const> : public TrueType {};
00076 template<class ContainerAllocator>
00077 struct MD5Sum< ::applanix_msgs::IPAddress_<ContainerAllocator> > {
00078   static const char* value() 
00079   {
00080     return "f9c07a2c57bd175eb0fab8fba08b6b4b";
00081   }
00082 
00083   static const char* value(const  ::applanix_msgs::IPAddress_<ContainerAllocator> &) { return value(); } 
00084   static const uint64_t static_value1 = 0xf9c07a2c57bd175eULL;
00085   static const uint64_t static_value2 = 0xb0fab8fba08b6b4bULL;
00086 };
00087 
00088 template<class ContainerAllocator>
00089 struct DataType< ::applanix_msgs::IPAddress_<ContainerAllocator> > {
00090   static const char* value() 
00091   {
00092     return "applanix_msgs/IPAddress";
00093   }
00094 
00095   static const char* value(const  ::applanix_msgs::IPAddress_<ContainerAllocator> &) { return value(); } 
00096 };
00097 
00098 template<class ContainerAllocator>
00099 struct Definition< ::applanix_msgs::IPAddress_<ContainerAllocator> > {
00100   static const char* value() 
00101   {
00102     return "# Msg 32\n\
00103 uint16 transaction\n\
00104 \n\
00105 uint8[4] address\n\
00106 uint8[4] subnet_mask\n\
00107 \n\
00108 \n\
00109 ";
00110   }
00111 
00112   static const char* value(const  ::applanix_msgs::IPAddress_<ContainerAllocator> &) { return value(); } 
00113 };
00114 
00115 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::IPAddress_<ContainerAllocator> > : public TrueType {};
00116 } // namespace message_traits
00117 } // namespace ros
00118 
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123 
00124 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::IPAddress_<ContainerAllocator> >
00125 {
00126   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127   {
00128     stream.next(m.transaction);
00129     stream.next(m.address);
00130     stream.next(m.subnet_mask);
00131   }
00132 
00133   ROS_DECLARE_ALLINONE_SERIALIZER;
00134 }; // struct IPAddress_
00135 } // namespace serialization
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142 
00143 template<class ContainerAllocator>
00144 struct Printer< ::applanix_msgs::IPAddress_<ContainerAllocator> >
00145 {
00146   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::applanix_msgs::IPAddress_<ContainerAllocator> & v) 
00147   {
00148     s << indent << "transaction: ";
00149     Printer<uint16_t>::stream(s, indent + "  ", v.transaction);
00150     s << indent << "address[]" << std::endl;
00151     for (size_t i = 0; i < v.address.size(); ++i)
00152     {
00153       s << indent << "  address[" << i << "]: ";
00154       Printer<uint8_t>::stream(s, indent + "  ", v.address[i]);
00155     }
00156     s << indent << "subnet_mask[]" << std::endl;
00157     for (size_t i = 0; i < v.subnet_mask.size(); ++i)
00158     {
00159       s << indent << "  subnet_mask[" << i << "]: ";
00160       Printer<uint8_t>::stream(s, indent + "  ", v.subnet_mask[i]);
00161     }
00162   }
00163 };
00164 
00165 
00166 } // namespace message_operations
00167 } // namespace ros
00168 
00169 #endif // APPLANIX_MSGS_MESSAGE_IPADDRESS_H
00170 


applanix_msgs
Author(s): Mike Purvis
autogenerated on Thu Jan 2 2014 11:04:51