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