$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/NetworkList.msg */ 00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_NETWORKLIST_H 00003 #define WPA_SUPPLICANT_NODE_MESSAGE_NETWORKLIST_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 #include "wpa_supplicant_node/Network.h" 00018 00019 namespace wpa_supplicant_node 00020 { 00021 template <class ContainerAllocator> 00022 struct NetworkList_ { 00023 typedef NetworkList_<ContainerAllocator> Type; 00024 00025 NetworkList_() 00026 : networks() 00027 { 00028 } 00029 00030 NetworkList_(const ContainerAllocator& _alloc) 00031 : networks(_alloc) 00032 { 00033 } 00034 00035 typedef std::vector< ::wpa_supplicant_node::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Network_<ContainerAllocator> >::other > _networks_type; 00036 std::vector< ::wpa_supplicant_node::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Network_<ContainerAllocator> >::other > networks; 00037 00038 00039 ROS_DEPRECATED uint32_t get_networks_size() const { return (uint32_t)networks.size(); } 00040 ROS_DEPRECATED void set_networks_size(uint32_t size) { networks.resize((size_t)size); } 00041 ROS_DEPRECATED void get_networks_vec(std::vector< ::wpa_supplicant_node::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Network_<ContainerAllocator> >::other > & vec) const { vec = this->networks; } 00042 ROS_DEPRECATED void set_networks_vec(const std::vector< ::wpa_supplicant_node::Network_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Network_<ContainerAllocator> >::other > & vec) { this->networks = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "wpa_supplicant_node/NetworkList"; } 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 "87beb766062d9c7233cf489c11ade2e1"; } 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 "wpa_supplicant_node/Network[] networks\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: wpa_supplicant_node/Network\n\ 00062 int32 network_id\n\ 00063 bool enabled\n\ 00064 NetworkParameter[] parameters\n\ 00065 \n\ 00066 ================================================================================\n\ 00067 MSG: wpa_supplicant_node/NetworkParameter\n\ 00068 string key\n\ 00069 string value\n\ 00070 \n\ 00071 "; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00078 { 00079 ros::serialization::OStream stream(write_ptr, 1000000000); 00080 ros::serialization::serialize(stream, networks); 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, networks); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint32_t serializationLength() const 00092 { 00093 uint32_t size = 0; 00094 size += ros::serialization::serializationLength(networks); 00095 return size; 00096 } 00097 00098 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > Ptr; 00099 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> const> ConstPtr; 00100 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00101 }; // struct NetworkList 00102 typedef ::wpa_supplicant_node::NetworkList_<std::allocator<void> > NetworkList; 00103 00104 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkList> NetworkListPtr; 00105 typedef boost::shared_ptr< ::wpa_supplicant_node::NetworkList const> NetworkListConstPtr; 00106 00107 00108 template<typename ContainerAllocator> 00109 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::NetworkList_<ContainerAllocator> & v) 00110 { 00111 ros::message_operations::Printer< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> >::stream(s, "", v); 00112 return s;} 00113 00114 } // namespace wpa_supplicant_node 00115 00116 namespace ros 00117 { 00118 namespace message_traits 00119 { 00120 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > : public TrueType {}; 00121 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> const> : public TrueType {}; 00122 template<class ContainerAllocator> 00123 struct MD5Sum< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "87beb766062d9c7233cf489c11ade2e1"; 00127 } 00128 00129 static const char* value(const ::wpa_supplicant_node::NetworkList_<ContainerAllocator> &) { return value(); } 00130 static const uint64_t static_value1 = 0x87beb766062d9c72ULL; 00131 static const uint64_t static_value2 = 0x33cf489c11ade2e1ULL; 00132 }; 00133 00134 template<class ContainerAllocator> 00135 struct DataType< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "wpa_supplicant_node/NetworkList"; 00139 } 00140 00141 static const char* value(const ::wpa_supplicant_node::NetworkList_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct Definition< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "wpa_supplicant_node/Network[] networks\n\ 00149 \n\ 00150 ================================================================================\n\ 00151 MSG: wpa_supplicant_node/Network\n\ 00152 int32 network_id\n\ 00153 bool enabled\n\ 00154 NetworkParameter[] parameters\n\ 00155 \n\ 00156 ================================================================================\n\ 00157 MSG: wpa_supplicant_node/NetworkParameter\n\ 00158 string key\n\ 00159 string value\n\ 00160 \n\ 00161 "; 00162 } 00163 00164 static const char* value(const ::wpa_supplicant_node::NetworkList_<ContainerAllocator> &) { return value(); } 00165 }; 00166 00167 } // namespace message_traits 00168 } // namespace ros 00169 00170 namespace ros 00171 { 00172 namespace serialization 00173 { 00174 00175 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > 00176 { 00177 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00178 { 00179 stream.next(m.networks); 00180 } 00181 00182 ROS_DECLARE_ALLINONE_SERIALIZER; 00183 }; // struct NetworkList_ 00184 } // namespace serialization 00185 } // namespace ros 00186 00187 namespace ros 00188 { 00189 namespace message_operations 00190 { 00191 00192 template<class ContainerAllocator> 00193 struct Printer< ::wpa_supplicant_node::NetworkList_<ContainerAllocator> > 00194 { 00195 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::NetworkList_<ContainerAllocator> & v) 00196 { 00197 s << indent << "networks[]" << std::endl; 00198 for (size_t i = 0; i < v.networks.size(); ++i) 00199 { 00200 s << indent << " networks[" << i << "]: "; 00201 s << std::endl; 00202 s << indent; 00203 Printer< ::wpa_supplicant_node::Network_<ContainerAllocator> >::stream(s, indent + " ", v.networks[i]); 00204 } 00205 } 00206 }; 00207 00208 00209 } // namespace message_operations 00210 } // namespace ros 00211 00212 #endif // WPA_SUPPLICANT_NODE_MESSAGE_NETWORKLIST_H 00213