00001
00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_SCANGOAL_H
00003 #define WPA_SUPPLICANT_NODE_MESSAGE_SCANGOAL_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 ScanGoal_ : public ros::Message
00018 {
00019 typedef ScanGoal_<ContainerAllocator> Type;
00020
00021 ScanGoal_()
00022 : ssids()
00023 , frequencies()
00024 {
00025 }
00026
00027 ScanGoal_(const ContainerAllocator& _alloc)
00028 : ssids(_alloc)
00029 , frequencies(_alloc)
00030 {
00031 }
00032
00033 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _ssids_type;
00034 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > ssids;
00035
00036 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _frequencies_type;
00037 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > frequencies;
00038
00039
00040 ROS_DEPRECATED uint32_t get_ssids_size() const { return (uint32_t)ssids.size(); }
00041 ROS_DEPRECATED void set_ssids_size(uint32_t size) { ssids.resize((size_t)size); }
00042 ROS_DEPRECATED void get_ssids_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->ssids; }
00043 ROS_DEPRECATED void set_ssids_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->ssids = vec; }
00044 ROS_DEPRECATED uint32_t get_frequencies_size() const { return (uint32_t)frequencies.size(); }
00045 ROS_DEPRECATED void set_frequencies_size(uint32_t size) { frequencies.resize((size_t)size); }
00046 ROS_DEPRECATED void get_frequencies_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->frequencies; }
00047 ROS_DEPRECATED void set_frequencies_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->frequencies = vec; }
00048 private:
00049 static const char* __s_getDataType_() { return "wpa_supplicant_node/ScanGoal"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "ba2593d2dce6a457221cb3434fea1def"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00064 string[] ssids # Ssids to scan\n\
00065 int32[] frequencies # Channels to scan in MHz\n\
00066 \n\
00067 "; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00074 {
00075 ros::serialization::OStream stream(write_ptr, 1000000000);
00076 ros::serialization::serialize(stream, ssids);
00077 ros::serialization::serialize(stream, frequencies);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, ssids);
00085 ros::serialization::deserialize(stream, frequencies);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint32_t serializationLength() const
00090 {
00091 uint32_t size = 0;
00092 size += ros::serialization::serializationLength(ssids);
00093 size += ros::serialization::serializationLength(frequencies);
00094 return size;
00095 }
00096
00097 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> > Ptr;
00098 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> const> ConstPtr;
00099 };
00100 typedef ::wpa_supplicant_node::ScanGoal_<std::allocator<void> > ScanGoal;
00101
00102 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanGoal> ScanGoalPtr;
00103 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanGoal const> ScanGoalConstPtr;
00104
00105
00106 template<typename ContainerAllocator>
00107 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> & v)
00108 {
00109 ros::message_operations::Printer< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> >::stream(s, "", v);
00110 return s;}
00111
00112 }
00113
00114 namespace ros
00115 {
00116 namespace message_traits
00117 {
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "ba2593d2dce6a457221cb3434fea1def";
00123 }
00124
00125 static const char* value(const ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> &) { return value(); }
00126 static const uint64_t static_value1 = 0xba2593d2dce6a457ULL;
00127 static const uint64_t static_value2 = 0x221cb3434fea1defULL;
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct DataType< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "wpa_supplicant_node/ScanGoal";
00135 }
00136
00137 static const char* value(const ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct Definition< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00145 string[] ssids # Ssids to scan\n\
00146 int32[] frequencies # Channels to scan in MHz\n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161
00162 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> >
00163 {
00164 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165 {
00166 stream.next(m.ssids);
00167 stream.next(m.frequencies);
00168 }
00169
00170 ROS_DECLARE_ALLINONE_SERIALIZER;
00171 };
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179
00180 template<class ContainerAllocator>
00181 struct Printer< ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> >
00182 {
00183 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::ScanGoal_<ContainerAllocator> & v)
00184 {
00185 s << indent << "ssids[]" << std::endl;
00186 for (size_t i = 0; i < v.ssids.size(); ++i)
00187 {
00188 s << indent << " ssids[" << i << "]: ";
00189 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.ssids[i]);
00190 }
00191 s << indent << "frequencies[]" << std::endl;
00192 for (size_t i = 0; i < v.frequencies.size(); ++i)
00193 {
00194 s << indent << " frequencies[" << i << "]: ";
00195 Printer<int32_t>::stream(s, indent + " ", v.frequencies[i]);
00196 }
00197 }
00198 };
00199
00200
00201 }
00202 }
00203
00204 #endif // WPA_SUPPLICANT_NODE_MESSAGE_SCANGOAL_H
00205