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