00001
00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_ASSOCIATEGOAL_H
00003 #define WPA_SUPPLICANT_NODE_MESSAGE_ASSOCIATEGOAL_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace wpa_supplicant_node
00015 {
00016 template <class ContainerAllocator>
00017 struct AssociateGoal_ : public ros::Message
00018 {
00019 typedef AssociateGoal_<ContainerAllocator> Type;
00020
00021 AssociateGoal_()
00022 : ssid()
00023 , bssid()
00024 {
00025 bssid.assign(0);
00026 }
00027
00028 AssociateGoal_(const ContainerAllocator& _alloc)
00029 : ssid(_alloc)
00030 , bssid()
00031 {
00032 bssid.assign(0);
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _ssid_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ssid;
00037
00038 typedef boost::array<uint8_t, 6> _bssid_type;
00039 boost::array<uint8_t, 6> bssid;
00040
00041
00042 ROS_DEPRECATED uint32_t get_bssid_size() const { return (uint32_t)bssid.size(); }
00043 private:
00044 static const char* __s_getDataType_() { return "wpa_supplicant_node/AssociateGoal"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00047
00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00049
00050 private:
00051 static const char* __s_getMD5Sum_() { return "c38a1e6906f8c27b31959e0b0a44e536"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00054
00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00056
00057 private:
00058 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00059 string ssid\n\
00060 uint8[6] bssid\n\
00061 #Bss bss\n\
00062 \n\
00063 "; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00070 {
00071 ros::serialization::OStream stream(write_ptr, 1000000000);
00072 ros::serialization::serialize(stream, ssid);
00073 ros::serialization::serialize(stream, bssid);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00078 {
00079 ros::serialization::IStream stream(read_ptr, 1000000000);
00080 ros::serialization::deserialize(stream, ssid);
00081 ros::serialization::deserialize(stream, bssid);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint32_t serializationLength() const
00086 {
00087 uint32_t size = 0;
00088 size += ros::serialization::serializationLength(ssid);
00089 size += ros::serialization::serializationLength(bssid);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::wpa_supplicant_node::AssociateGoal_<std::allocator<void> > AssociateGoal;
00097
00098 typedef boost::shared_ptr< ::wpa_supplicant_node::AssociateGoal> AssociateGoalPtr;
00099 typedef boost::shared_ptr< ::wpa_supplicant_node::AssociateGoal const> AssociateGoalConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "c38a1e6906f8c27b31959e0b0a44e536";
00119 }
00120
00121 static const char* value(const ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0xc38a1e6906f8c27bULL;
00123 static const uint64_t static_value2 = 0x31959e0b0a44e536ULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "wpa_supplicant_node/AssociateGoal";
00131 }
00132
00133 static const char* value(const ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00141 string ssid\n\
00142 uint8[6] bssid\n\
00143 #Bss bss\n\
00144 \n\
00145 ";
00146 }
00147
00148 static const char* value(const ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 }
00152 }
00153
00154 namespace ros
00155 {
00156 namespace serialization
00157 {
00158
00159 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> >
00160 {
00161 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00162 {
00163 stream.next(m.ssid);
00164 stream.next(m.bssid);
00165 }
00166
00167 ROS_DECLARE_ALLINONE_SERIALIZER;
00168 };
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176
00177 template<class ContainerAllocator>
00178 struct Printer< ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> >
00179 {
00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::AssociateGoal_<ContainerAllocator> & v)
00181 {
00182 s << indent << "ssid: ";
00183 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.ssid);
00184 s << indent << "bssid[]" << std::endl;
00185 for (size_t i = 0; i < v.bssid.size(); ++i)
00186 {
00187 s << indent << " bssid[" << i << "]: ";
00188 Printer<uint8_t>::stream(s, indent + " ", v.bssid[i]);
00189 }
00190 }
00191 };
00192
00193
00194 }
00195 }
00196
00197 #endif // WPA_SUPPLICANT_NODE_MESSAGE_ASSOCIATEGOAL_H
00198